summaryrefslogtreecommitdiffstats
path: root/Python/thread.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-10-22 01:28:21 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-10-22 01:28:21 (GMT)
commitd60ea5ff009e7e48be78c388f642cd64287655f7 (patch)
treef8ef370f6c48d7547734ba5126d51c7adbf02eae /Python/thread.c
parent3b557991d4a7626cf12baf2277bc87acbc439744 (diff)
downloadcpython-d60ea5ff009e7e48be78c388f642cd64287655f7.zip
cpython-d60ea5ff009e7e48be78c388f642cd64287655f7.tar.gz
cpython-d60ea5ff009e7e48be78c388f642cd64287655f7.tar.bz2
Issue #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 This backports a patch by Victor Stinner.
Diffstat (limited to 'Python/thread.c')
0 files changed, 0 insertions, 0 deletions