Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Skip tests if no threading.
  • Loading branch information
ericsnowcurrently committed Jun 14, 2023
commit efb5fc16e7094bb4791edc1ce5617eccce58ac5c
2 changes: 2 additions & 0 deletions Lib/test/test_capi/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,7 @@ def wait_for_result(self):
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!'

Expand All @@ -1421,6 +1422,7 @@ def do_the_work():

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)
Expand Down