mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
GH-111808: Make the default value for test.support.infinite_recursion()
conditional on compiler optimizations (GH-112223)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
dabc0d77b2
commit
f489ace9e7
4 changed files with 16 additions and 4 deletions
|
@ -5621,7 +5621,7 @@ class ForwardRefTests(BaseTestCase):
|
|||
def cmp(o1, o2):
|
||||
return o1 == o2
|
||||
|
||||
with infinite_recursion(25): # magic number, small but reasonable
|
||||
with infinite_recursion():
|
||||
r1 = namespace1()
|
||||
r2 = namespace2()
|
||||
self.assertIsNot(r1, r2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue