gh-93678: Address stack exhaustion on WASI (GH-95296)

This commit is contained in:
Christian Heimes 2022-07-26 22:14:35 +02:00 committed by GitHub
parent 9af7f87d76
commit 51c56f8d72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View file

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