projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ced6550
)
add a timeout value to connection_error_invalid_port test to accelerate failure
author
Colin Dickson
<colin.dickson@gmail.com>
Thu, 5 Feb 2015 02:05:03 +0000
(21:05 -0500)
committer
Colin Dickson
<colin.dickson@gmail.com>
Thu, 5 Feb 2015 02:05:03 +0000
(21:05 -0500)
test_requests.py
patch
|
blob
|
history
diff --git
a/test_requests.py
b/test_requests.py
index 3f496fc872f93c6b2c18418e7e05bfa03464fbc3..6e527848b44e5d2e4537655c16dc169798aa44c5 100755
(executable)
--- a/
test_requests.py
+++ b/
test_requests.py
@@
-309,7
+309,7
@@
class RequestsTestCase(unittest.TestCase):
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"""