8000 Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1472) · python/cpython@fd6094c · GitHub
[go: up one dir, main page]

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

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
@@ -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)
0