summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_multiprocessing.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-05-05 07:47:11 (GMT)
committerGitHub <noreply@github.com>2017-05-05 07:47:11 (GMT)
commitfd6094cdebb5736745d164e0207de2d4cb0b50dc (patch)
tree2d5ca90f5ee257b4c8a6fc6e59cee894a0133e88 /Lib/test/test_multiprocessing.py
parentef4c6ba169ff59215442fc4047d83f7a3d39bf39 (diff)
downloadcpython-fd6094cdebb5736745d164e0207de2d4cb0b50dc.zip
cpython-fd6094cdebb5736745d164e0207de2d4cb0b50dc.tar.gz
cpython-fd6094cdebb5736745d164e0207de2d4cb0b50dc.tar.bz2
Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1472)
(cherry picked from commit 685cdb9acc3fca04a9897d88b89771ddfd50e772)
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r--Lib/test/test_multiprocessing.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index 163c42f..8cc4f54 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.