From: Victor Stinner Date: Fri, 23 Aug 2019 12:59:40 +0000 (+0100) Subject: test_multiprocessing removes temporary files (GH-15421) X-Git-Tag: v2.7.17rc1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b26f734c0c96d267f23f59b42fcbb193fbf146b;p=thirdparty%2FPython%2Fcpython.git test_multiprocessing removes temporary files (GH-15421) (cherry picked from commit d0b10a64351069aa9246d40cb8bd207cc9209cee) --- diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index ff299feed894..c82ccfa7f0bf 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -1809,6 +1809,7 @@ class _TestConnection(BaseTestCase): p = self.Process(target=self._writefd, args=(child_conn, b"foo")) p.daemon = True p.start() + self.addCleanup(support.unlink, support.TESTFN) with open(support.TESTFN, "wb") as f: fd = f.fileno() if msvcrt: @@ -1834,6 +1835,7 @@ class _TestConnection(BaseTestCase): p = self.Process(target=self._writefd, args=(child_conn, b"bar", True)) p.daemon = True p.start() + self.addCleanup(support.unlink, support.TESTFN) with open(support.TESTFN, "wb") as f: fd = f.fileno() for newfd in range(256, MAXFD):