]> granicus.if.org Git - python/commitdiff
Relax test timing (bpo-29861) to avoid sporadic failures (#1120)
authorAntoine Pitrou <pitrou@free.fr>
Fri, 14 Apr 2017 11:10:00 +0000 (13:10 +0200)
committerGitHub <noreply@github.com>
Fri, 14 Apr 2017 11:10:00 +0000 (13:10 +0200)
Lib/test/_test_multiprocessing.py

index 771bbf24265b91204df4fc7dacbd3fccc6c624d0..57ada127465d7589783cd46dde7f768f21a4efbf 100644 (file)
@@ -2080,6 +2080,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.