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

(cherry picked from commit 685cdb9acc)
This commit is contained in:
Antoine Pitrou 2017-04-14 13:37:46 +02:00 committed by GitHub
parent cbc46afa59
commit 413a8913ae

View file

@ -2080,6 +2080,7 @@ class _TestPool(BaseTestCase):
self.pool.map(identity, objs) self.pool.map(identity, objs)
del objs del objs
time.sleep(DELTA) # let threaded cleanup code run
self.assertEqual(set(wr() for wr in refs), {None}) self.assertEqual(set(wr() for wr in refs), {None})
# With a process pool, copies of the objects are returned, check # With a process pool, copies of the objects are returned, check
# they were released too. # they were released too.