Skip to content

[3.6] bpo-31259: test_urllib2_localnet uses addCleanup(server.stop)#3186

Merged
vstinner merged 1 commit into
python:3.6from
vstinner:test_urllib2_localnet36
Aug 22, 2017
Merged

[3.6] bpo-31259: test_urllib2_localnet uses addCleanup(server.stop)#3186
vstinner merged 1 commit into
python:3.6from
vstinner:test_urllib2_localnet36

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Aug 22, 2017

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

https://bugs.python.org/issue31259

@vstinner vstinner changed the title [3.6] bpo-31258: test_urllib2_localnet uses addCleanup(server.stop) [3.6] bpo-31259: test_urllib2_localnet uses addCleanup(server.stop) Aug 22, 2017
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().
@vstinner vstinner merged commit 468534d into python:3.6 Aug 22, 2017
@vstinner vstinner deleted the test_urllib2_localnet36 branch August 22, 2017 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants