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

serhiy-storchaka <[email protected]>
Newsgroups gmane.comp.python.cvs
Message-ID <[email protected]>
https://github.com/python/cpython/commit/031cd30025d58e1ff0fb8362a41c29e5c85ef1b8
commit: 031cd30025d58e1ff0fb8362a41c29e5c85ef1b8
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-08-14T05:06:32Z
summary:

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

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 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'<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.