mirror of https://github.com/python/cpython
gh-111808: Fix recursion error on WASM in `test_typing` (GH-111819)
This commit is contained in:
parent
2f9cb7e095
commit
0e83d941be
|
@ -44,7 +44,7 @@ import typing
|
|||
import weakref
|
||||
import types
|
||||
|
||||
from test.support import captured_stderr, cpython_only
|
||||
from test.support import captured_stderr, cpython_only, infinite_recursion
|
||||
from test import mod_generics_cache
|
||||
from test import _typed_dict_helper
|
||||
|
||||
|
@ -5622,6 +5622,7 @@ class ForwardRefTests(BaseTestCase):
|
|||
def cmp(o1, o2):
|
||||
return o1 == o2
|
||||
|
||||
with infinite_recursion(25): # magic number, small but reasonable
|
||||
r1 = namespace1()
|
||||
r2 = namespace2()
|
||||
self.assertIsNot(r1, r2)
|
||||
|
|
Loading…
Reference in New Issue