summaryrefslogtreecommitdiffstats
path: root/Lib/test/_test_multiprocessing.py
diff options
context:
space:
mode:
authorAntoine Pitrou <pitrou@free.fr>2017-04-14 11:37:46 (GMT)
committerGitHub <noreply@github.com>2017-04-14 11:37:46 (GMT)
commit413a8913aee255d0635e4ddbb9c343d9e5e76fea (patch)
treeb4c91082c35b0487d2c24e39e0d98c39bc20dc73 /Lib/test/_test_multiprocessing.py
parentcbc46afa59dcc43c2c8c90ae7a0a0dc404325a89 (diff)
downloadcpython-413a8913aee255d0635e4ddbb9c343d9e5e76fea.zip
cpython-413a8913aee255d0635e4ddbb9c343d9e5e76fea.tar.gz
cpython-413a8913aee255d0635e4ddbb9c343d9e5e76fea.tar.bz2
Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1132)
(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 771bbf2..57ada12 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -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.