From 1a9a6494ea92e268b8c1576676461c1a61afb19a 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 f9e48c7c75378e..fa970b80efd9c7 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -1564,6 +1564,7 @@ def test_repr_lock(self): event.wait() self.assertEqual(f'', repr(lock)) p.terminate() + p.join() def test_lock(self): lock = self.Lock()