Skip to content

Commit dff841a

Browse files
[debugging via CI] Temporarily skip waiting for "ready".
1 parent 35076d9 commit dff841a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Lib/test/test_concurrent_futures/test_interpreter_pool.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,18 @@ def run(ready, blocker):
368368
for i in range(numtasks):
369369
fut = executor.submit(run, ready, blocker)
370370
futures.append(fut)
371-
# Wait for them all to be ready.
372-
for i in range(numtasks):
373-
ready.get() # blocking
371+
assert len(executor._threads) == numtasks, len(executor._threads)
374372
# Unblock the workers.
375373
for i in range(numtasks):
376374
blocker.put_nowait(None)
375+
# try:
376+
# # Wait for them all to be ready.
377+
# for i in range(numtasks):
378+
# ready.get() # blocking
379+
# finally:
380+
# # Unblock the workers.
381+
# for i in range(numtasks):
382+
# blocker.put_nowait(None)
377383
finally:
378384
executor.shutdown(wait=True)
379385

0 commit comments

Comments
 (0)