Skip to content

Commit

Permalink
Merge pull request #2438 from colindickson/master
Browse files Browse the repository at this point in the history
add a timeout value to connection_error_invalid_port test to accelerate failure
  • Loading branch information
Lukasa committed Feb 4, 2015
2 parents c7beb70 + 80aee7a commit 426493f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def test_connection_error_invalid_domain(self):
def test_connection_error_invalid_port(self):
"""Connecting to an invalid port should raise a ConnectionError"""
with pytest.raises(ConnectionError):
requests.get("http://httpbin.org:1")
requests.get("http://httpbin.org:1", timeout=1)

def test_LocationParseError(self):
"""Inputing a URL that cannot be parsed should raise an InvalidURL error"""
Expand Down

0 comments on commit 426493f

Please sign in to comment.