Skip to content

Commit fd6094c

Browse files
authored
Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1472)
(cherry picked from commit 685cdb9)
1 parent ef4c6ba commit fd6094c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_multiprocessing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,7 @@ def test_release_task_refs(self):
12901290
self.pool.map(identity, objs)
12911291

12921292
del objs
1293+
time.sleep(DELTA) # let threaded cleanup code run
12931294
self.assertEqual(set(wr() for wr in refs), {None})
12941295
# With a process pool, copies of the objects are returned, check
12951296
# they were released too.

0 commit comments

Comments
 (0)