summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <pitrou@free.fr>2017-04-14 11:10:00 (GMT)
committerGitHub <noreply@github.com>2017-04-14 11:10:00 (GMT)
commit685cdb9acc3fca04a9897d88b89771ddfd50e772 (patch)
tree80ffacc5dab7f601e63b3cbddc6c875cd7e46dbd /Lib
parentf9f87f0934ca570293ba7194bed3448a7f9bf39c (diff)
downloadcpython-685cdb9acc3fca04a9897d88b89771ddfd50e772.zip
cpython-685cdb9acc3fca04a9897d88b89771ddfd50e772.tar.gz
cpython-685cdb9acc3fca04a9897d88b89771ddfd50e772.tar.bz2
Relax test timing (bpo-29861) to avoid sporadic failures (#1120)
Diffstat (limited to 'Lib')
-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.