From cc16a01d4f98c09484c5c3632e04a898b6f512fd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 Jan 2017 16:59:55 +0530 Subject: [PATCH] ... --- src/calibre/srv/tests/loop.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/srv/tests/loop.py b/src/calibre/srv/tests/loop.py index 17956ad2a1..30762a3284 100644 --- a/src/calibre/srv/tests/loop.py +++ b/src/calibre/srv/tests/loop.py @@ -95,6 +95,8 @@ class LoopTest(BaseTest): conn.request('GET', '/') with self.assertRaises(socket.timeout): res = conn.getresponse() + if str(res.status) == '408': + raise socket.timeout('Timeout') raise Exception('Got unexpected response: code: %s %s headers: %r data: %r' % ( res.status, res.reason, res.getheaders(), res.read())) self.ae(pool.busy, 1)