mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
db14a9d594
commit
ce2b56e280
2 changed files with 5 additions and 1 deletions
|
@ -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))):
|
||||
|
|
|
@ -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.
|
Loading…
Add table
Add a link
Reference in a new issue