https://github.com/python/cpython/commit/3c414a5b49897f75f1dd623919f05ff188a74367
commit: 3c414a5b49897f75f1dd623919f05ff188a74367
branch: main
author: Serhiy Storchaka <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-08-14T07:39:37+03:00
summary:

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.

files:
M Lib/test/_test_multiprocessing.py

diff --git a/Lib/test/_test_multiprocessing.py 
b/Lib/test/_test_multiprocessing.py
index 36e0880bc08818..ba1c0de5d28332 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'<Lock(owner=SomeOtherProcess)>', repr(lock))
         p.terminate()
+        p.join()
 
     def test_lock(self):
         lock = self.Lock()

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to