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

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Nikita Sobolev 2022-10-26 16:15:39 +03:00 committed by GitHub
parent de6981680b
commit 9495360c72
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
@ -4635,6 +4635,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))):