Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1472) · python/cpython@fd6094c (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit fd6094c

(cherry picked from commit 685cdb9)

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 1 addition & 0 deletions

Original file line number Diff line number Diff line change
@@ -1290,6 +1290,7 @@ def test_release_task_refs(self):
1290 1290 self.pool.map(identity, objs)
1291 1291
1292 1292 del objs
1293 +time.sleep(DELTA) # let threaded cleanup code run
1293 1294 self.assertEqual(set(wr() for wr in refs), {None})
1294 1295 # With a process pool, copies of the objects are returned, check
1295 1296 # they were released too.