summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pickle.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2024-01-23 23:48:14 (GMT)
committerGitHub <noreply@github.com>2024-01-23 23:48:14 (GMT)
commitf59f90b5bccb9e7ac522bc779ab1f6bf11bb4aa3 (patch)
tree83782c1796acc78abfc39e30c0c41ec1e1101f18 /Lib/test/test_pickle.py
parentafe8f376c096d5d6e8b12fbc691ca9b35381470b (diff)
downloadcpython-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_pickle.py')
-rw-r--r--Lib/test/test_pickle.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py
index f6405d6..b2245dd 100644
--- a/Lib/test/test_pickle.py
+++ b/Lib/test/test_pickle.py
@@ -402,7 +402,9 @@ if has_c_implementation:
check_unpickler(recurse(1), 32, 20)
check_unpickler(recurse(20), 32, 20)
check_unpickler(recurse(50), 64, 60)
- check_unpickler(recurse(100), 128, 140)
+ if not (support.is_wasi and support.Py_DEBUG):
+ # stack depth too shallow in pydebug WASI.
+ check_unpickler(recurse(100), 128, 140)
u = unpickler(io.BytesIO(pickle.dumps('a', 0)),
encoding='ASCII', errors='strict')