mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-93678: Address stack exhaustion on WASI (GH-95296)
This commit is contained in:
parent
9af7f87d76
commit
51c56f8d72
2 changed files with 9 additions and 4 deletions
|
@ -108,6 +108,7 @@ class TestSpecifics(unittest.TestCase):
|
|||
exec('z = a', g, d)
|
||||
self.assertEqual(d['z'], 12)
|
||||
|
||||
@unittest.skipIf(support.is_wasi, "exhausts limited stack on WASI")
|
||||
def test_extended_arg(self):
|
||||
# default: 1000 * 2.5 = 2500 repetitions
|
||||
repeat = int(sys.getrecursionlimit() * 2.5)
|
||||
|
@ -542,6 +543,7 @@ if 1:
|
|||
self.assertIn(b"Non-UTF-8", res.err)
|
||||
|
||||
@support.cpython_only
|
||||
@unittest.skipIf(support.is_wasi, "exhausts limited stack on WASI")
|
||||
def test_compiler_recursion_limit(self):
|
||||
# Expected limit is sys.getrecursionlimit() * the scaling factor
|
||||
# in symtable.c (currently 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue