summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-08-23 12:59:40 (GMT)
committerGitHub <noreply@github.com>2019-08-23 12:59:40 (GMT)
commit3b26f734c0c96d267f23f59b42fcbb193fbf146b (patch)
tree65d33ecb053666751929dde6a796df932504000f /Lib/test
parent98b11e1160a1749bfdb48bbf4c0dda177296b005 (diff)
downloadcpython-3b26f734c0c96d267f23f59b42fcbb193fbf146b.zip
cpython-3b26f734c0c96d267f23f59b42fcbb193fbf146b.tar.gz
cpython-3b26f734c0c96d267f23f59b42fcbb193fbf146b.tar.bz2
test_multiprocessing removes temporary files (GH-15421)
(cherry picked from commit d0b10a64351069aa9246d40cb8bd207cc9209cee)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_multiprocessing.py2
1 files changed, 2 insertions, 0 deletions
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):