[Python-checkins] cpython (merge 3.2 -> default): Merge 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/c545ed50eac8
changeset: 72429:c545ed50eac8
parent: 72427:1d71aa589549
parent: 72428:e06db421e4c4
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Wed Sep 21 01:12:59 2011 +0200
summary:
Merge 3.2: 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
@@ -1646,6 +1646,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:
@@ -1671,6 +1672,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