summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Petrov <andrey.petrov@shazow.net>2015-09-04 00:53:43 -0700
committerAndrey Petrov <andrey.petrov@shazow.net>2015-09-04 00:53:43 -0700
commitca4908078418f45db04992b60aa08a0e1bf48d27 (patch)
treecd0c72e5a90d0e8e6621bf4457cf1b2bbe6e0185
parente91c16169e463118ce662345461933bb3a7dedef (diff)
downloadurllib3-ca4908078418f45db04992b60aa08a0e1bf48d27.tar.gz
tests: Get rid of /sleep handler (and one test last test condition that depended on it which I dont care about)
-rw-r--r--dummyserver/handlers.py6
-rw-r--r--test/with_dummyserver/test_https.py2
2 files changed, 0 insertions, 8 deletions
diff --git a/dummyserver/handlers.py b/dummyserver/handlers.py
index ffa1dd36..8028b16d 100644
--- a/dummyserver/handlers.py
+++ b/dummyserver/handlers.py
@@ -166,12 +166,6 @@ class TestingApp(RequestHandler):
headers = [('Connection', 'keep-alive')]
return Response('Keeping alive', headers=headers)
- def sleep(self, request):
- "Sleep for a specified amount of ``seconds``"
- seconds = float(request.params.get('seconds', '1'))
- time.sleep(seconds)
- return Response()
-
def echo(self, request):
"Echo back the params"
if request.method == 'GET':
diff --git a/test/with_dummyserver/test_https.py b/test/with_dummyserver/test_https.py
index 068531fe..862ebd9b 100644
--- a/test/with_dummyserver/test_https.py
+++ b/test/with_dummyserver/test_https.py
@@ -318,8 +318,6 @@ class TestHTTPS(HTTPSDummyServerTestCase):
https_pool.ca_certs = DEFAULT_CA
https_pool.assert_fingerprint = 'CC:45:6A:90:82:F7FF:C0:8218:8e:' \
'7A:F2:8A:D7:1E:07:33:67:DE'
- url = '/sleep?seconds=0.005'
- self.assertRaises(ReadTimeoutError, https_pool.request, 'GET', url)
timeout = Timeout(total=None)
https_pool = HTTPSConnectionPool(self.host, self.port, timeout=timeout,