From 392217d41df2a7f05dc0ecbfe633a8acbae5aa9a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 Jan 2017 17:01:18 +0530 Subject: [PATCH] ... --- src/calibre/srv/tests/loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/tests/loop.py b/src/calibre/srv/tests/loop.py index 30762a3284..c04430733c 100644 --- a/src/calibre/srv/tests/loop.py +++ b/src/calibre/srv/tests/loop.py @@ -95,7 +95,7 @@ class LoopTest(BaseTest): conn.request('GET', '/') with self.assertRaises(socket.timeout): res = conn.getresponse() - if str(res.status) == '408': + if str(res.status) == str(httplib.REQUEST_TIMEOUT): raise socket.timeout('Timeout') raise Exception('Got unexpected response: code: %s %s headers: %r data: %r' % ( res.status, res.reason, res.getheaders(), res.read()))