Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Swap catch_threading_exception() and start_threads()
  • Loading branch information
ZeroIntensity committed Jan 13, 2025
commit 939308e5a30a7a2a295b36d8f8ac451fcc7e0fab
4 changes: 2 additions & 2 deletions Lib/test/test_sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ def set_recursion_limit():
for _ in range(5):
threads.append(Thread(target=something_recursive))

with threading_helper.start_threads(threads):
with threading_helper.catch_threading_exception() as cm:
with threading_helper.catch_threading_exception() as cm:
with threading_helper.start_threads(threads):
if cm.exc_value:
raise cm.exc_value

Expand Down