diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-08-23 13:59:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-23 13:59:40 +0100 |
commit | 3b26f734c0c96d267f23f59b42fcbb193fbf146b (patch) | |
tree | 65d33ecb053666751929dde6a796df932504000f | |
parent | 98b11e1160a1749bfdb48bbf4c0dda177296b005 (diff) | |
download | cpython-git-3b26f734c0c96d267f23f59b42fcbb193fbf146b.tar.gz |
test_multiprocessing removes temporary files (GH-15421)
(cherry picked from commit d0b10a64351069aa9246d40cb8bd207cc9209cee)
-rw-r--r-- | Lib/test/test_multiprocessing.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index ff299feed8..c82ccfa7f0 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): |