Skip to content

Commit cfeefb8

Browse files
committed
Remove flaky check
1 parent e4cbc3a commit cfeefb8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Lib/test/test_concurrent_futures.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,13 +1047,9 @@ def test_max_tasks_per_child(self):
10471047
self.assertEqual(len(executor._processes), 1)
10481048
f3 = executor.submit(os.getpid)
10491049
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)
10551050

1056-
# A new worker is spawned, with a statistically different pid
1051+
# A new worker is spawned, with a statistically different pid,
1052+
# while the previous was reaped.
10571053
f4 = executor.submit(os.getpid)
10581054
new_pid = f4.result()
10591055
self.assertNotEqual(original_pid, new_pid)

0 commit comments

Comments
 (0)