summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-04-07 07:22:47 (GMT)
committerGitHub <noreply@github.com>2022-04-07 07:22:47 (GMT)
commit2b16a08bc77475917dd5c96417aef4c5210b45ac (patch)
tree6188ad8008760a8710ba6692c44c25157c69d981 /Lib/test/test_capi.py
parent5aee46b31ba37d65cdf4d5a96cabb8835c508deb (diff)
downloadcpython-2b16a08bc77475917dd5c96417aef4c5210b45ac.zip
cpython-2b16a08bc77475917dd5c96417aef4c5210b45ac.tar.gz
cpython-2b16a08bc77475917dd5c96417aef4c5210b45ac.tar.bz2
bpo-40280: Detect missing threading on WASM platforms (GH-32352)
Co-authored-by: Brett Cannon <brett@python.org>
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 714a2d9..3837f80 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -710,6 +710,7 @@ class TestPendingCalls(unittest.TestCase):
if False and support.verbose:
print("(%i)"%(len(l),))
+ @threading_helper.requires_working_threading()
def test_pendingcalls_threaded(self):
#do every callback on a separate thread
@@ -840,6 +841,7 @@ class SubinterpreterTest(unittest.TestCase):
class TestThreadState(unittest.TestCase):
@threading_helper.reap_threads
+ @threading_helper.requires_working_threading()
def test_thread_state(self):
# some extra thread-state tests driven via _testcapi
def target():