[Python-checkins] cpython (3.2): test_multiprocessing removes temporary files
victor.stinner
python-checkins at python.org
Wed Sep 21 01:13:07 CEST 2011
http://hg.python.org/cpython/rev/e06db421e4c4
changeset: 72428:e06db421e4c4
branch: 3.2
parent: 72426:950515bff239
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Wed Sep 21 01:10:29 2011 +0200
summary:
test_multiprocessing removes temporary files
files:
Lib/test/test_multiprocessing.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -1590,6 +1590,7 @@
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 @@
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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list