We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff70843 commit df11bf3Copy full SHA for df11bf3
Lib/test/test_concurrent_futures/executor.py
@@ -243,7 +243,10 @@ def test_shutdown_notifies_cancelled_futures(self):
243
for index in range(count)]
244
245
self.executor.shutdown(wait=False, cancel_futures=True)
246
- barrier.wait()
+ try:
247
+ barrier.wait()
248
+ except threading.BrokenBarrierError:
249
+ pass
250
251
for future in fs:
252
self.assertRaises((FalseyBoolException, futures.CancelledError),
0 commit comments