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 e4cbc3a commit cfeefb8Copy full SHA for cfeefb8
Lib/test/test_concurrent_futures.py
@@ -1047,13 +1047,9 @@ def test_max_tasks_per_child(self):
1047
self.assertEqual(len(executor._processes), 1)
1048
f3 = executor.submit(os.getpid)
1049
self.assertEqual(f3.result(), original_pid)
1050
- # The worker reached end-of-life and is eventually reaped
1051
- t1 = time.monotonic()
1052
- while len(executor._processes) > 0:
1053
- self.assertLess(time.monotonic() - t1, 10.0)
1054
- time.sleep(0.1)
1055
1056
- # A new worker is spawned, with a statistically different pid
+ # A new worker is spawned, with a statistically different pid,
+ # while the previous was reaped.
1057
f4 = executor.submit(os.getpid)
1058
new_pid = f4.result()
1059
self.assertNotEqual(original_pid, new_pid)
0 commit comments