Fix tests
Functional test change the content of POTENTIAL_HTTP_PORTS but don't reset it. Ignore those changes.
This commit is contained in:
@@ -61,6 +61,7 @@ def test_httpretty_should_raise_on_socket_send_when_uri_registered():
|
||||
HTTPretty.enable()
|
||||
|
||||
defaults = core.POTENTIAL_HTTP_PORTS[:]
|
||||
core.POTENTIAL_HTTP_PORTS = [80, 443]
|
||||
HTTPretty.register_uri(HTTPretty.GET,
|
||||
'http://127.0.0.1:5000')
|
||||
expect(core.POTENTIAL_HTTP_PORTS).to.be.equal([80, 443, 5000])
|
||||
|
||||
Reference in New Issue
Block a user