summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-06-14 00:39:18 (GMT)
committerGitHub <noreply@github.com>2023-06-14 00:39:18 (GMT)
commitfcf0647cf2a78de2c2b603af2709d58c8567df67 (patch)
tree77040122a9189f7a3d973cb0a9ca7299b7a952d8 /Lib
parentb542972dc133973a7f0517aa1b61779271789111 (diff)
downloadcpython-fcf0647cf2a78de2c2b603af2709d58c8567df67.zip
cpython-fcf0647cf2a78de2c2b603af2709d58c8567df67.tar.gz
cpython-fcf0647cf2a78de2c2b603af2709d58c8567df67.tar.bz2
gh-104812: Skip Pending Calls Tests if No Threading (gh-105761)
This fixes the WASM buildbots.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_capi/test_misc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_capi/test_misc.py b/Lib/test/test_capi/test_misc.py
index 58e1a83..ccec27d 100644
--- a/Lib/test/test_capi/test_misc.py
+++ b/Lib/test/test_capi/test_misc.py
@@ -1406,6 +1406,7 @@ class TestPendingCalls(unittest.TestCase):
while self.result is None:
time.sleep(0.01)
+ @threading_helper.requires_working_threading()
def test_subthreads_can_handle_pending_calls(self):
payload = 'Spam spam spam spam. Lovely spam! Wonderful spam!'
@@ -1421,6 +1422,7 @@ class TestPendingCalls(unittest.TestCase):
self.assertEqual(task.result, payload)
+ @threading_helper.requires_working_threading()
def test_many_subthreads_can_handle_pending_calls(self):
main_tid = threading.get_ident()
self.assertEqual(threading.main_thread().ident, main_tid)