From 9d39ca7bb869f33648649732d248208940aa410b Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 14 Aug 2026 07:39:37 +0300 Subject: [PATCH] gh-155732: Join the terminated process in test_repr_lock (GH-155734) The process was terminated, but not joined, so it was still reported as a dangling process. (cherry picked from commit 3c414a5b49897f75f1dd623919f05ff188a74367) Co-authored-by: Serhiy Storchaka --- Lib/test/_test_multiprocessing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 580d9f2b32544e4..90e07c0d3e46092 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -1594,6 +1594,7 @@ def test_repr_lock(self): event.wait() self.assertEqual(f'', repr(lock)) p.terminate() + p.join() def test_lock(self): lock = self.Lock()