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

Skip to content

Commit 413a891

Browse files
authored
Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1132)
(cherry picked from commit 685cdb9)
1 parent cbc46af commit 413a891

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
@@ -2080,6 +2080,7 @@ def test_release_task_refs(self):
20802080
self.pool.map(identity, objs)
20812081

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

0 commit comments

Comments
 (0)
0