diff options
author | Brett Cannon <brett@python.org> | 2024-01-23 23:48:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 23:48:14 (GMT) |
commit | f59f90b5bccb9e7ac522bc779ab1f6bf11bb4aa3 (patch) | |
tree | 83782c1796acc78abfc39e30c0c41ec1e1101f18 /Lib/test/test_dynamic.py | |
parent | afe8f376c096d5d6e8b12fbc691ca9b35381470b (diff) | |
download | cpython-f59f90b5bccb9e7ac522bc779ab1f6bf11bb4aa3.zip cpython-f59f90b5bccb9e7ac522bc779ab1f6bf11bb4aa3.tar.gz cpython-f59f90b5bccb9e7ac522bc779ab1f6bf11bb4aa3.tar.bz2 |
GH-114456: lower the recursion limit under WASI for debug builds (GH-114457)
Testing under wasmtime 16.0.0 w/ code from https://github.com/python/cpython/issues/114413 is how the value was found.
Diffstat (limited to 'Lib/test/test_dynamic.py')
-rw-r--r-- | Lib/test/test_dynamic.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_dynamic.py b/Lib/test/test_dynamic.py index 0aa3be6..3928bba 100644 --- a/Lib/test/test_dynamic.py +++ b/Lib/test/test_dynamic.py @@ -4,7 +4,7 @@ import builtins import sys import unittest -from test.support import swap_item, swap_attr +from test.support import is_wasi, Py_DEBUG, swap_item, swap_attr class RebindBuiltinsTests(unittest.TestCase): @@ -134,6 +134,7 @@ class RebindBuiltinsTests(unittest.TestCase): self.assertEqual(foo(), 7) + @unittest.skipIf(is_wasi and Py_DEBUG, "stack depth too shallow in pydebug WASI") def test_load_global_specialization_failure_keeps_oparg(self): # https://github.com/python/cpython/issues/91625 class MyGlobals(dict): |