Skip to content
Closed
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
Calls executor.shutdown before closing file.
  • Loading branch information
elistevens committed May 17, 2024
commit 997dbc260a7d41e5dfeb94c2db4502a3be91e3a2
2 changes: 1 addition & 1 deletion Lib/test/test_io_threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_io_threading(self):
for i in range(NUM_THREADS):
executor.submit(looping_print_to_file, f, i)

executor.shutdown(wait=True)
executor.shutdown(wait=True)

with open('test_io_threading.out', 'r') as f:
lines = set(x.rstrip() for x in f.readlines() if ',' in x)
Expand Down