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:
Brett Cannon 2023-11-17 15:52:11 -08:00 committed by GitHub
parent dabc0d77b2
commit f489ace9e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 4 deletions

View file

@ -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)