summaryrefslogtreecommitdiff
path: root/Python/importlib.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-24 13:55:58 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-24 13:55:58 +0100
commitbc6b72ed06318a80a68b4bbf513a0e055b102e11 (patch)
tree0df641245428f706ff77cb9d5ce38834e74d0d89 /Python/importlib.h
parente321274b2eeaf9cfaccbc8d40c4056ab72040e1b (diff)
downloadcpython-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