[issue37421] Tests leak temporary files

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pablogsal, serhiy.storchaka, zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37421] Tests leak temporary files

2019-06-26 Thread STINNER Victor
STINNER Victor added the comment: Test leaking a temporary file in test_urllib: test.test_urllib.urlretrieve_HttpTests.test_short_content_raises_ContentTooShortError_without_reporthook I'm not sure of my fix: diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index f6ce9cb6d5..f6e

[issue37421] Tests leak temporary files

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14229 pull_request: https://github.com/python/cpython/pull/14416 ___ Python tracker ___ __

[issue37421] Tests leak temporary files

2019-06-26 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +14228 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14415 ___ Python tracker ___ _

[issue37421] Tests leak temporary files

2019-06-26 Thread STINNER Victor
New submission from STINNER Victor : When running tests, the tempoary directory is not left clean: there are temporary files which are not removed. I wrote a PoC change to detect such bugs and I found that at least test_shutil and test_urllib leak such temporary files/directories. --