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

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 413a891

(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
@@ -2080,6 +2080,7 @@ def test_release_task_refs(self):
2080 2080 self.pool.map(identity, objs)
2081 2081
2082 2082 del objs
2083 +time.sleep(DELTA) # let threaded cleanup code run
2083 2084 self.assertEqual(set(wr() for wr in refs), {None})
2084 2085 # With a process pool, copies of the objects are returned, check
2085 2086 # they were released too.