diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-24 13:55:58 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-24 13:55:58 +0100 |
commit | bc6b72ed06318a80a68b4bbf513a0e055b102e11 (patch) | |
tree | 0df641245428f706ff77cb9d5ce38834e74d0d89 /Python/importlib.h | |
parent | e321274b2eeaf9cfaccbc8d40c4056ab72040e1b (diff) | |
download | cpython-git-bc6b72ed06318a80a68b4bbf513a0e055b102e11.tar.gz |
Closes #26620: Fix ResourceWarning in test_urllib2_localnet
* Use context manager on urllib objects to ensure that they are closed on error
* Use self.addCleanup() to cleanup resources even if a test is interrupted
with CTRL+c
Diffstat (limited to 'Python/importlib.h')
0 files changed, 0 insertions, 0 deletions