commit | bc6b72ed06318a80a68b4bbf513a0e055b102e11 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Thu Mar 24 13:55:58 2016 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Thu Mar 24 13:55:58 2016 +0100 |
tree | 0df641245428f706ff77cb9d5ce38834e74d0d89 | |
parent | e321274b2eeaf9cfaccbc8d40c4056ab72040e1b [diff] |
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