From d0b10a64351069aa9246d40cb8bd207cc9209cee Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 21 Sep 2011 01:10:29 +0200 Subject: [PATCH] test_multiprocessing removes temporary files --- Lib/test/test_multiprocessing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index fd223129c34..5d734ed8a0f 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):