Skip to content

Commit 2ba6378

Browse files
committed
Replace assertTrue with assertIn in test_submit_after_interpreter_shutdown
1 parent 6b78fc2 commit 2ba6378

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_concurrent_futures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def run_last():
328328
context=getattr(self, "ctx", "")))
329329
# Errors in atexit hooks don't change the process exit code, check
330330
# stderr manually.
331-
self.assertTrue(err)
331+
self.assertIn("RuntimeError: cannot schedule new futures", err.decode())
332332
self.assertEqual(out.strip(), b"runtime-error")
333333

334334
def test_hang_issue12364(self):

0 commit comments

Comments
 (0)