summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_multiprocessing.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-20 23:10:29 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-20 23:10:29 (GMT)
commitd0b10a64351069aa9246d40cb8bd207cc9209cee (patch)
treef04fea019aa87725dc99626c791793b9fc7c9f39 /Lib/test/test_multiprocessing.py
parent18d15cb665f8e446b79a0043eac7eee0904b4d10 (diff)
downloadcpython-d0b10a64351069aa9246d40cb8bd207cc9209cee.zip
cpython-d0b10a64351069aa9246d40cb8bd207cc9209cee.tar.gz
cpython-d0b10a64351069aa9246d40cb8bd207cc9209cee.tar.bz2
test_multiprocessing removes temporary files
Diffstat (limited to 'Lib/test/test_multiprocessing.py')
-rw-r--r--Lib/test/test_multiprocessing.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index fd22312..5d734ed 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -1590,6 +1590,7 @@ class _TestConnection(BaseTestCase):
p = self.Process(target=self._writefd, args=(child_conn, b"foo"))
p.daemon = True
p.start()
+ self.addCleanup(test.support.unlink, test.support.TESTFN)
with open(test.support.TESTFN, "wb") as f:
fd = f.fileno()
if msvcrt:
@@ -1614,6 +1615,7 @@ class _TestConnection(BaseTestCase):
p = self.Process(target=self._writefd, args=(child_conn, b"bar", True))
p.daemon = True
p.start()
+ self.addCleanup(test.support.unlink, test.support.TESTFN)
with open(test.support.TESTFN, "wb") as f:
fd = f.fileno()
for newfd in range(256, MAXFD):