Skip to content

Commit 031cd30

Browse files
[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 3c414a5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent f734bce commit 031cd30

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/_test_multiprocessing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,6 +1564,7 @@ def test_repr_lock(self):
15641564
event.wait()
15651565
self.assertEqual(f'<Lock(owner=SomeOtherProcess)>', repr(lock))
15661566
p.terminate()
1567+
p.join()
15671568

15681569
def test_lock(self):
15691570
lock = self.Lock()

0 commit comments

Comments
 (0)