Kaydet (Commit) fd6094cd authored tarafından Victor Stinner's avatar Victor Stinner Kaydeden (comit) GitHub

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

(cherry picked from commit 685cdb9a)
üst ef4c6ba1
...@@ -1290,6 +1290,7 @@ class _TestPool(BaseTestCase): ...@@ -1290,6 +1290,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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment