aboutsummaryrefslogtreecommitdiff
path: root/test/with_dummyserver/test_proxy_poolmanager.py
diff options
context:
space:
mode:
authorDaniele Tricoli <eriol@mornie.org>2015-10-09 23:19:30 +0200
committerDaniele Tricoli <eriol@mornie.org>2015-10-09 23:19:30 +0200
commitcd2a4010a9e1356c36cfb42b57501343c29e2608 (patch)
tree81af3946a53bb27e34e85eb28035ace8c3e7b27e /test/with_dummyserver/test_proxy_poolmanager.py
parentebc01af6ebb87c1e27e50b4ea572b8c1a20e70b0 (diff)
parent7db0aa9b18e70f43ef0bfcdec7f223e5b681aaf0 (diff)
downloadpython-urllib3-cd2a4010a9e1356c36cfb42b57501343c29e2608.tar
python-urllib3-cd2a4010a9e1356c36cfb42b57501343c29e2608.tar.gz
merge patched into master
Diffstat (limited to 'test/with_dummyserver/test_proxy_poolmanager.py')
-rw-r--r--test/with_dummyserver/test_proxy_poolmanager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/with_dummyserver/test_proxy_poolmanager.py b/test/with_dummyserver/test_proxy_poolmanager.py
index c593f2d..b2894a8 100644
--- a/test/with_dummyserver/test_proxy_poolmanager.py
+++ b/test/with_dummyserver/test_proxy_poolmanager.py
@@ -287,7 +287,7 @@ class TestHTTPProxyManager(HTTPDummyProxyTestCase):
https.request('GET', self.http_url, timeout=0.001)
self.fail("Failed to raise retry error.")
except MaxRetryError as e:
- assert isinstance(e.reason, ConnectTimeoutError)
+ self.assertEqual(type(e.reason), ConnectTimeoutError)
@timed(0.5)
@@ -298,7 +298,7 @@ class TestHTTPProxyManager(HTTPDummyProxyTestCase):
https.request('GET', self.http_url)
self.fail("Failed to raise retry error.")
except MaxRetryError as e:
- assert isinstance(e.reason, ConnectTimeoutError)
+ self.assertEqual(type(e.reason), ConnectTimeoutError)
class TestIPv6HTTPProxyManager(IPv6HTTPDummyProxyTestCase):