[3.13] gh-155732: Join the terminated process in test_repr_lock (GH-155734) (GH-155768)

serhiy-storchaka <[email protected]>
Newsgroups gmane.comp.python.cvs
Message-ID <[email protected]>
https://github.com/python/cpython/commit/94a69e6a6c7a3ad5c90b59efac9c717d27323941
commit: 94a69e6a6c7a3ad5c90b59efac9c717d27323941
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-08-15T10:53:40Z
summary:

[3.13] gh-155732: Join the terminated process in test_repr_lock (GH-155734) (GH-155768)

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 <[email protected]>

files:
M Lib/test/_test_multiprocessing.py

diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index d35fa12f17c0c1..c56b31aad0f7b6 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -1493,6 +1493,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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.