gh-113205: test_multiprocessing.test_terminate: Give tasks a chance to start (GH-114249)

This commit is contained in:
Serhiy Storchaka 2024-01-24 09:13:09 +02:00 committed by GitHub
parent 82cd8fee31
commit ce75b4c26d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2705,6 +2705,7 @@ def test_terminate(self):
p = self.Pool(3)
args = [sleep_time for i in range(10_000)]
result = p.map_async(time.sleep, args, chunksize=1)
time.sleep(0.2) # give some tasks a chance to start
p.terminate()
p.join()