Skip to content

Commit 3c414a5

Browse files
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.
1 parent b42025d commit 3c414a5

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
@@ -1595,6 +1595,7 @@ def test_repr_lock(self):
15951595
event.wait()
15961596
self.assertEqual(f'<Lock(owner=SomeOtherProcess)>', repr(lock))
15971597
p.terminate()
1598+
p.join()
15981599

15991600
def test_lock(self):
16001601
lock = self.Lock()

0 commit comments

Comments
 (0)