diff options
author | Quentin Pradet <quentin@pradet.me> | 2019-03-23 07:24:17 +0400 |
---|---|---|
committer | Seth Michael Larson <sethmichaellarson@gmail.com> | 2019-03-22 22:24:17 -0500 |
commit | edfd3450c6ab8a9d6e1ecc441c665b0afd4084ba (patch) | |
tree | 50ad5bc93b1ed84072f1fc5c17906b52e83f3300 /test/with_dummyserver/test_connectionpool.py | |
parent | cbe558b11d10f7e456b62bfba9ce142878d35dea (diff) | |
download | urllib3-edfd3450c6ab8a9d6e1ecc441c665b0afd4084ba.tar.gz |
Improve CI stability for timeouts and branch coverage (#1554)
Diffstat (limited to 'test/with_dummyserver/test_connectionpool.py')
-rw-r--r-- | test/with_dummyserver/test_connectionpool.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/with_dummyserver/test_connectionpool.py b/test/with_dummyserver/test_connectionpool.py index 4c5cad2b..d58b0c44 100644 --- a/test/with_dummyserver/test_connectionpool.py +++ b/test/with_dummyserver/test_connectionpool.py @@ -214,6 +214,8 @@ class TestConnectionPoolTimeouts(SocketDummyServerTestCase): self.assertRaises(ReadTimeoutError, pool.request, 'GET', '/') def test_create_connection_timeout(self): + self.start_basic_handler(block_send=Event(), num=0) # needed for self.port + timeout = Timeout(connect=SHORT_TIMEOUT, total=LONG_TIMEOUT) pool = HTTPConnectionPool(TARPIT_HOST, self.port, timeout=timeout, retries=False) self.addCleanup(pool.close) |