]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104812: Skip Pending Calls Tests if No Threading (gh-105761)
authorEric Snow <ericsnowcurrently@gmail.com>
Wed, 14 Jun 2023 00:39:18 +0000 (18:39 -0600)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 00:39:18 +0000 (00:39 +0000)
This fixes the WASM buildbots.

Lib/test/test_capi/test_misc.py

index 58e1a83da5c146854ea16876842d12c100dc90ab..ccec27d3e0b64c4a423c6c55547792759b760239 100644 (file)
@@ -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)