From fd6094cdebb5736745d164e0207de2d4cb0b50dc Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 5 May 2017 09:47:11 +0200 Subject: [PATCH] Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1472) (cherry picked from commit 685cdb9acc3fca04a9897d88b89771ddfd50e772) --- Lib/test/test_multiprocessing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index 163c42f1d10..8cc4f5423ac 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1290,6 +1290,7 @@ class _TestPool(BaseTestCase): self.pool.map(identity, objs) del objs + time.sleep(DELTA) # let threaded cleanup code run self.assertEqual(set(wr() for wr in refs), {None}) # With a process pool, copies of the objects are returned, check # they were released too.