]> granicus.if.org Git - python/commit
bpo-31259: test_urllib2_localnet uses addCleanup(server.stop) (#3186)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Aug 2017 16:03:38 +0000 (18:03 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2017 16:03:38 +0000 (18:03 +0200)
commit468534d92f6879e925c4cd8a228ea300abfb7e4d
tree061e9cb26e1866cb8393b0606d2737ce7d06a76b
parent5f20539ee5c6e3f1da23e8fc31ba519a3d078c79
bpo-31259: test_urllib2_localnet uses addCleanup(server.stop) (#3186)

Use self.addCleanup(self.server.stop) to stop the HTTP server. Some
tests didn't stop the server like test_https().

Fix also the usage of support.threading_cleanup().
Lib/test/test_urllib2_localnet.py