mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
cc16a01d4f
commit
392217d41d
@ -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()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user