Skip to content

Commit 3b26f73

Browse files
authored
test_multiprocessing removes temporary files (GH-15421)
(cherry picked from commit d0b10a6)
1 parent 98b11e1 commit 3b26f73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_multiprocessing.py

+2
Original file line numberDiff line numberDiff line change
@@ -1809,6 +1809,7 @@ def test_fd_transfer(self):
18091809
p = self.Process(target=self._writefd, args=(child_conn, b"foo"))
18101810
p.daemon = True
18111811
p.start()
1812+
self.addCleanup(support.unlink, support.TESTFN)
18121813
with open(support.TESTFN, "wb") as f:
18131814
fd = f.fileno()
18141815
if msvcrt:
@@ -1834,6 +1835,7 @@ def test_large_fd_transfer(self):
18341835
p = self.Process(target=self._writefd, args=(child_conn, b"bar", True))
18351836
p.daemon = True
18361837
p.start()
1838+
self.addCleanup(support.unlink, support.TESTFN)
18371839
with open(support.TESTFN, "wb") as f:
18381840
fd = f.fileno()
18391841
for newfd in range(256, MAXFD):

0 commit comments

Comments
 (0)