From: Antoine Pitrou Date: Fri, 14 Apr 2017 11:45:27 +0000 (+0200) Subject: Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1133) X-Git-Tag: v3.5.4rc1~211 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47f24a018f6a9c3ed996d2b83a7ebd0d1f905827;p=python Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1133) (cherry picked from commit 685cdb9acc3fca04a9897d88b89771ddfd50e772) --- diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index d1ef98dab4..e41845b404 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -1990,6 +1990,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.