]> granicus.if.org Git - python/commit
bpo-37421: test_winconsoleio doesn't leak temp file anymore (GH-14562)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 3 Jul 2019 09:31:39 +0000 (02:31 -0700)
committerGitHub <noreply@github.com>
Wed, 3 Jul 2019 09:31:39 +0000 (02:31 -0700)
commita2a807f75dc162dfb45fb297aee4961de8008f84
treee186e84d2502bab88c6a68b2dfa38c6509f4900e
parentb8e198a5d09ca876b87baaf6efd2b2e7c9e3a0b3
bpo-37421: test_winconsoleio doesn't leak temp file anymore (GH-14562)

test_winconsoleio doesn't leak a temporary file anymore: use
tempfile.TemporaryFile() to remove it when the test completes.
(cherry picked from commit b71d8d67959f3b5efbdfe00066589ac0d8f98aad)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/test_winconsoleio.py
Misc/NEWS.d/next/Tests/2019-07-02-23-20-35.bpo-37421.HCkKWz.rst [new file with mode: 0644]