]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-31258: test_urllib2_localnet uses addCleanup(server.stop) (#3184)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Aug 2017 14:51:20 +0000 (16:51 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2017 14:51:20 +0000 (16:51 +0200)
commit02e03672e6766b1da847b1635982a70346780744
tree9aec8712f74055fcee8858f8ffe4902edcbb45ff
parent1460ce5a9325690d8a1913c296a9bba437ff0f39
bpo-31258: test_urllib2_localnet uses addCleanup(server.stop) (#3184)

Use self.addCleanup(self.server.stop) to stop the HTTP server. Some
tests didn't stop the server like test_https().
Lib/test/test_urllib2_localnet.py