Commit d0b10a64 authored by Victor Stinner's avatar Victor Stinner

test_multiprocessing removes temporary files

parent 18d15cb6
...@@ -1590,6 +1590,7 @@ class _TestConnection(BaseTestCase): ...@@ -1590,6 +1590,7 @@ class _TestConnection(BaseTestCase):
p = self.Process(target=self._writefd, args=(child_conn, b"foo")) p = self.Process(target=self._writefd, args=(child_conn, b"foo"))
p.daemon = True p.daemon = True
p.start() p.start()
self.addCleanup(test.support.unlink, test.support.TESTFN)
with open(test.support.TESTFN, "wb") as f: with open(test.support.TESTFN, "wb") as f:
fd = f.fileno() fd = f.fileno()
if msvcrt: if msvcrt:
...@@ -1614,6 +1615,7 @@ class _TestConnection(BaseTestCase): ...@@ -1614,6 +1615,7 @@ class _TestConnection(BaseTestCase):
p = self.Process(target=self._writefd, args=(child_conn, b"bar", True)) p = self.Process(target=self._writefd, args=(child_conn, b"bar", True))
p.daemon = True p.daemon = True
p.start() p.start()
self.addCleanup(test.support.unlink, test.support.TESTFN)
with open(test.support.TESTFN, "wb") as f: with open(test.support.TESTFN, "wb") as f:
fd = f.fileno() fd = f.fileno()
for newfd in range(256, MAXFD): for newfd in range(256, MAXFD):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment