mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Relax test timing (bpo-29861) to avoid sporadic failures (#1120)
This commit is contained in:
parent
f9f87f0934
commit
685cdb9acc
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue