mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)
This commit is contained in:
parent
e48ac9c100
commit
137fd3d88a
20 changed files with 109 additions and 14 deletions
|
@ -109,7 +109,9 @@ class TestSpecifics(unittest.TestCase):
|
|||
self.assertEqual(d['z'], 12)
|
||||
|
||||
def test_extended_arg(self):
|
||||
longexpr = 'x = x or ' + '-x' * 2500
|
||||
# default: 1000 * 2.5 = 2500 repetitions
|
||||
repeat = int(sys.getrecursionlimit() * 2.5)
|
||||
longexpr = 'x = x or ' + '-x' * repeat
|
||||
g = {}
|
||||
code = '''
|
||||
def f(x):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue