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 3f54d1c commit 7d1abe9Copy full SHA for 7d1abe9
Lib/test/test_concurrent_futures/test_shutdown.py
@@ -247,7 +247,9 @@ def test_cancel_futures_wait_false(self):
247
# Errors in atexit hooks don't change the process exit code, check
248
# stderr manually.
249
self.assertFalse(err)
250
- self.assertEqual(out.strip(), b"apple")
+ # gh-116682: stdout may be empty if shutdown happens before task
251
+ # starts executing.
252
+ self.assertIn(out.strip(), [b"apple", b""])
253
254
255
class ProcessPoolShutdownTest(ExecutorShutdownTest):
0 commit comments