Skip to content

Commit d0b10a6

Browse files
author
Victor Stinner
committed
test_multiprocessing removes temporary files
1 parent 18d15cb commit d0b10a6

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
@@ -1590,6 +1590,7 @@ def test_fd_transfer(self):
15901590
p = self.Process(target=self._writefd, args=(child_conn, b"foo"))
15911591
p.daemon = True
15921592
p.start()
1593+
self.addCleanup(test.support.unlink, test.support.TESTFN)
15931594
with open(test.support.TESTFN, "wb") as f:
15941595
fd = f.fileno()
15951596
if msvcrt:
@@ -1614,6 +1615,7 @@ def test_large_fd_transfer(self):
16141615
p = self.Process(target=self._writefd, args=(child_conn, b"bar", True))
16151616
p.daemon = True
16161617
p.start()
1618+
self.addCleanup(test.support.unlink, test.support.TESTFN)
16171619
with open(test.support.TESTFN, "wb") as f:
16181620
fd = f.fileno()
16191621
for newfd in range(256, MAXFD):

0 commit comments

Comments
 (0)