Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1472)

(cherry picked from commit 685cdb9acc)
This commit is contained in:
Victor Stinner 2017-05-05 09:47:11 +02:00 committed by GitHub
parent ef4c6ba169
commit fd6094cdeb
1 changed files with 1 additions and 0 deletions

View File

@ -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.