From 3b26f734c0c96d267f23f59b42fcbb193fbf146b Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 23 Aug 2019 13:59:40 +0100 Subject: test_multiprocessing removes temporary files (GH-15421) (cherry picked from commit d0b10a64351069aa9246d40cb8bd207cc9209cee) --- 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 ff299fe..c82ccfa 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): -- cgit v0.12