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