gh-98713: Use @cpython_only for a test that fails on PyPy (GH-98714)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
(cherry picked from commit 9495360c72)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2022-10-26 06:41:42 -07:00 committed by GitHub
parent db14a9d594
commit ce2b56e280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -42,7 +42,7 @@ import typing
import weakref
import types
from test.support import import_helper, captured_stderr
from test.support import import_helper, captured_stderr, cpython_only
from test import mod_generics_cache
from test import _typed_dict_helper
@ -4615,6 +4615,7 @@ class OverloadTests(BaseTestCase):
blah()
@cpython_only # gh-98713
def test_overload_on_compiled_functions(self):
with patch("typing._overload_registry",
defaultdict(lambda: defaultdict(dict))):

View file

@ -0,0 +1,3 @@
Fix a bug in the :mod:`typing` tests where a test relying on CPython-specific
implementation details was not decorated with ``@cpython_only`` and was not
skipped on other implementations.