Skip to content

Commit 9460da4

Browse files
committed
fixup! fixup! fixup! Ensure the tracker is killed to allow multiple testing runs in the same process
1 parent a735d49 commit 9460da4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4490,12 +4490,12 @@ def check_semaphore_tracker_death(self, signum, should_die):
44904490
# information.
44914491
_semaphore_tracker._send("PING", "")
44924492
deadline = time.monotonic() + 5
4493-
with open(testfn, "rb") as pipe:
4493+
with open(testfn, "rb") as tracker_stderr:
44944494
while True:
44954495
if time.monotonic() >= deadline:
44964496
raise TimeoutError("Reading data "
4497-
"from pipe took too long")
4498-
data = pipe.readline()
4497+
"from tracker stderr took too long")
4498+
data = tracker_stderr.readline()
44994499
if not data:
45004500
continue
45014501
if b"PONG" not in data:

0 commit comments

Comments
 (0)