From: Colin Dickson Date: Thu, 5 Feb 2015 02:05:03 +0000 (-0500) Subject: add a timeout value to connection_error_invalid_port test to accelerate failure X-Git-Tag: v2.5.2~7^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80aee7a2252f15d6790f15e1d98d59885e9c7e7b;p=services%2Fpython-requests.git add a timeout value to connection_error_invalid_port test to accelerate failure --- diff --git a/test_requests.py b/test_requests.py index 3f496fc..6e52784 100755 --- 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"""