diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-20 23:12:59 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-20 23:12:59 (GMT) |
commit | 4ad6ed7d4dd79bed50b8f4d0bdbfa7af161e7294 (patch) | |
tree | f9c2e289ce320086a74fb5b6a24138c56e5d710f | |
parent | c61fae04f699a5859afa814954e3823247cb25eb (diff) | |
parent | d0b10a64351069aa9246d40cb8bd207cc9209cee (diff) | |
download | cpython-4ad6ed7d4dd79bed50b8f4d0bdbfa7af161e7294.zip cpython-4ad6ed7d4dd79bed50b8f4d0bdbfa7af161e7294.tar.gz cpython-4ad6ed7d4dd79bed50b8f4d0bdbfa7af161e7294.tar.bz2 |
Merge 3.2: test_multiprocessing removes temporary files
-rw-r--r-- | 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 index 7ac77e9..c33fa7b 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1646,6 +1646,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: @@ -1671,6 +1672,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): |