Skip to content

Commit ce2b56e

Browse files
gh-98713: Use @cpython_only for a test that fails on PyPy (GH-98714)
Co-authored-by: Alex Waygood <[email protected]> (cherry picked from commit 9495360) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent db14a9d commit ce2b56e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Lib/test/test_typing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
import weakref
4343
import types
4444

45-
from test.support import import_helper, captured_stderr
45+
from test.support import import_helper, captured_stderr, cpython_only
4646
from test import mod_generics_cache
4747
from test import _typed_dict_helper
4848

@@ -4615,6 +4615,7 @@ def blah():
46154615

46164616
blah()
46174617

4618+
@cpython_only # gh-98713
46184619
def test_overload_on_compiled_functions(self):
46194620
with patch("typing._overload_registry",
46204621
defaultdict(lambda: defaultdict(dict))):
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix a bug in the :mod:`typing` tests where a test relying on CPython-specific
2+
implementation details was not decorated with ``@cpython_only`` and was not
3+
skipped on other implementations.

0 commit comments

Comments
 (0)