[3.14] GH-130397: remove special-casing of C stack depth for WASI (GH-134469) (GH-134547)

GH-130397: remove special-casing of C stack depth for WASI (GH-134469)

Removed special-casing for WASI when setting C stack depth limits. Since WASI has its own C stack checking this isn't a security risk.

Also disabled some tests that stopped passing. They all happened to have already been disabled under Emscripten.
(cherry picked from commit ad42dc1909)

Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
Miss Islington (bot) 2025-05-22 23:42:23 +02:00 committed by GitHub
parent 06a3a85f15
commit 15e26eebf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 15 additions and 7 deletions

View file

@ -318,6 +318,7 @@ class TestIsInstanceIsSubclass(unittest.TestCase):
self.assertRaises(RecursionError, isinstance, 1, X())
@support.skip_emscripten_stack_overflow()
@support.skip_wasi_stack_overflow()
def test_infinite_recursion_via_bases_tuple(self):
"""Regression test for bpo-30570."""
class Failure(object):
@ -328,6 +329,7 @@ class TestIsInstanceIsSubclass(unittest.TestCase):
issubclass(Failure(), int)
@support.skip_emscripten_stack_overflow()
@support.skip_wasi_stack_overflow()
def test_infinite_cycle_in_bases(self):
"""Regression test for bpo-30570."""
class X: