Skip to content

Commit 2534bbf

Browse files
committed
Add a comment to explain why catch queues.QueueEmpty
1 parent d08f96e commit 2534bbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_concurrent_futures/test_interpreter_pool.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,8 @@ def run(taskid, ready, blocker):
428428
except interpreters.QueueEmpty:
429429
pass
430430
except queues.QueueEmpty:
431+
# GH-142414: reloading the _queues module makes get to raise
432+
# queues.QueueEmpty instead of interpreters.QueueEmpty.
431433
pass
432434
else:
433435
done += 1

0 commit comments

Comments
 (0)