From: Victor Stinner Date: Tue, 20 Sep 2011 23:10:29 +0000 (+0200) Subject: test_multiprocessing removes temporary files X-Git-Tag: v3.2.3rc1~558 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0b10a64351069aa9246d40cb8bd207cc9209cee;p=thirdparty%2FPython%2Fcpython.git test_multiprocessing removes temporary files --- diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index fd223129c347..5d734ed8a0ff 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):