From 2f1ab7c1fe384e188624d37b146252586d9a1444 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 13 Aug 2026 18:45:11 +0300 Subject: [PATCH] gh-155732: Join the terminated process in test_repr_lock The process was terminated, but not joined, so it was still reported as a dangling process. --- 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 36e0880bc088189..ba1c0de5d283323 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -1595,6 +1595,7 @@ def test_repr_lock(self): event.wait() self.assertEqual(f'', repr(lock)) p.terminate() + p.join() def test_lock(self): lock = self.Lock()