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 c696f33 commit 77f1b14Copy full SHA for 77f1b14
1 file changed
Lib/test/test_concurrent_futures/test_process_pool.py
@@ -115,7 +115,11 @@ def test_traceback_when_child_process_terminates_abruptly(self):
115
with self.assertRaises(BrokenProcessPool) as bpe:
116
future.result()
117
118
- cause = bpe.exception.__cause__
+ for _ in support.sleeping_retry(support.SHORT_TIMEOUT):
119
+ cause = bpe.exception.__cause__
120
+ if isinstance(cause, futures.process._RemoteTraceback):
121
+ break
122
+
123
self.assertIsInstance(cause, futures.process._RemoteTraceback)
124
self.assertIn(
125
f"terminated abruptly with exit code {exit_code}", cause.tb
0 commit comments