FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-104812: Skip Pending Calls Tests if No Threading by ericsnowcurrently · Pull Request #105761 · python/cpython · GitHub

/ cpython Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 2 additions & 0 deletions Lib/test/test_capi/test_misc.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL