gh-104812: Skip Pending Calls Tests if No Threading (gh-105761)

This fixes the WASM buildbots.
This commit is contained in:
Eric Snow 2023-06-13 18:39:18 -06:00 committed by GitHub
parent b542972dc1
commit fcf0647cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View 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)