mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
gh-110097: Fix flaky test_timeout in test_concurrent_futures.test_process_pool (gh-131108)
On heavily loaded systems, the launch of the workers to run `time.sleep(0)` can take longer than the five second timeout.
This commit is contained in:
parent
f30376c650
commit
776ec1e167
1 changed files with 3 additions and 1 deletions
|
|
@ -69,7 +69,9 @@ def test_map_timeout(self):
|
|||
else:
|
||||
self.fail('expected TimeoutError')
|
||||
|
||||
self.assertEqual([None, None], results)
|
||||
# gh-110097: On heavily loaded systems, the launch of the worker may
|
||||
# take longer than the specified timeout.
|
||||
self.assertIn(results, ([None, None], [None], []))
|
||||
|
||||
def test_shutdown_race_issue12456(self):
|
||||
# Issue #12456: race condition at shutdown where trying to post a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue