]> granicus.if.org Git - python/commit
bpo-37421: test_winconsoleio doesn't leak temp file anymore (GH-14562)
authorVictor Stinner <vstinner@redhat.com>
Wed, 3 Jul 2019 09:09:56 +0000 (11:09 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Jul 2019 09:09:56 +0000 (11:09 +0200)
commitb71d8d67959f3b5efbdfe00066589ac0d8f98aad
tree8d1e014f3de495666fceccb81562b3a46182c18c
parent0f6f73ff3c2e46144884c4d418e67939a042aa23
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.
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]