Skip to content

Commit d0d8595

Browse files
committed
gh-156204: Safely skip ctypes test on mobile/wasm and reduce tuple depth
1 parent df43d6a commit d0d8595

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/test/test_exceptions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2778,8 +2778,11 @@ def test_except_star_invalid_exception_type(self):
27782778
except (ValueError, 42):
27792779
pass
27802780

2781+
@cpython_only
2782+
@support.skip_emscripten_stack_overflow()
2783+
@support.skip_wasi_stack_overflow()
27812784
def test_given_exception_matches_deeply_nested_tuple(self):
2782-
import ctypes
2785+
ctypes = import_module('ctypes')
27832786
lib = ctypes.pythonapi
27842787
lib.PyErr_GivenExceptionMatches.argtypes = [ctypes.py_object, ctypes.py_object]
27852788
lib.PyErr_GivenExceptionMatches.restype = ctypes.c_int

0 commit comments

Comments
 (0)