diff options
author | Christian Heimes <christian@python.org> | 2022-06-24 10:40:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 10:40:43 (GMT) |
commit | 8625802d854ec0152177a6ff0ac092e0e3ff98a5 (patch) | |
tree | d401c4014ca633de8cbdbc9db7b57b2bbdb2bb21 /Lib/test/test_code.py | |
parent | ab077d1e17032f84514292ae3fb8dee9bcfd2ce9 (diff) | |
download | cpython-8625802d854ec0152177a6ff0ac092e0e3ff98a5.zip cpython-8625802d854ec0152177a6ff0ac092e0e3ff98a5.tar.gz cpython-8625802d854ec0152177a6ff0ac092e0e3ff98a5.tar.bz2 |
gh-84461: Fix ctypes and test_ctypes on Emscripten (#94142)
- c_longlong and c_longdouble need experimental WASM bigint.
- Skip tests that need threading
- Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. libffi-emscripten 2022-06-23 supports up to 1000 args.
Diffstat (limited to 'Lib/test/test_code.py')
-rw-r--r-- | Lib/test/test_code.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py index a6857dc..308141a 100644 --- a/Lib/test/test_code.py +++ b/Lib/test/test_code.py @@ -141,6 +141,7 @@ from test.support import (cpython_only, check_impl_detail, requires_debug_ranges, gc_collect) from test.support.script_helper import assert_python_ok +from test.support import threading_helper from opcode import opmap COPY_FREE_VARS = opmap['COPY_FREE_VARS'] @@ -723,6 +724,7 @@ if check_impl_detail(cpython=True) and ctypes is not None: self.assertEqual(extra.value, 300) del f + @threading_helper.requires_working_threading() def test_free_different_thread(self): # Freeing a code object on a different thread then # where the co_extra was set should be safe. |