Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47f24a0

Browse files
authored
Relax test timing (bpo-29861) to avoid sporadic failures (python#1120) (python#1133)
(cherry picked from commit 685cdb9)
1 parent d7abeb7 commit 47f24a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/_test_multiprocessing.py

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

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

0 commit comments

Comments
 (0)