Skip to content

Commit 4ad6ed7

Browse files
author
Victor Stinner
committed
Merge 3.2: test_multiprocessing removes temporary files
2 parents c61fae0 + d0b10a6 commit 4ad6ed7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_multiprocessing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,7 @@ def test_fd_transfer(self):
16461646
p = self.Process(target=self._writefd, args=(child_conn, b"foo"))
16471647
p.daemon = True
16481648
p.start()
1649+
self.addCleanup(test.support.unlink, test.support.TESTFN)
16491650
with open(test.support.TESTFN, "wb") as f:
16501651
fd = f.fileno()
16511652
if msvcrt:
@@ -1671,6 +1672,7 @@ def test_large_fd_transfer(self):
16711672
p = self.Process(target=self._writefd, args=(child_conn, b"bar", True))
16721673
p.daemon = True
16731674
p.start()
1675+
self.addCleanup(test.support.unlink, test.support.TESTFN)
16741676
with open(test.support.TESTFN, "wb") as f:
16751677
fd = f.fileno()
16761678
for newfd in range(256, MAXFD):

0 commit comments

Comments
 (0)