mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2025-01-26 07:44:35 +00:00
remove outdated IOError test case (f5fdfd8a9f
)
This commit is contained in:
parent
4781c565a9
commit
39fa579dd5
@ -1055,7 +1055,7 @@ class HTTPHandler(ProtocolHandler):
|
||||
flow.live = None
|
||||
|
||||
return True
|
||||
except (HttpAuthenticationError, http.HttpError, proxy.ProxyError, tcp.NetLibError, IOError), e:
|
||||
except (HttpAuthenticationError, http.HttpError, proxy.ProxyError, tcp.NetLibError), e:
|
||||
self.handle_error(e, flow)
|
||||
return False
|
||||
|
||||
|
@ -108,16 +108,6 @@ class TestHTTP(tservers.HTTPProxTest, CommonMixin, AppMixin):
|
||||
assert p.request(req)
|
||||
assert p.request(req)
|
||||
|
||||
def test_proxy_ioerror(self):
|
||||
# Tests a difficult-to-trigger condition, where an IOError is raised
|
||||
# within our read loop.
|
||||
with mock.patch("libmproxy.protocol.http.HTTPRequest.from_stream") as m:
|
||||
def brk(f, *args, **kwargs):
|
||||
f.o._sock.close()
|
||||
raise IOError("error!")
|
||||
m.side_effect = brk
|
||||
tutils.raises("server disconnect", self.pathod, "304")
|
||||
|
||||
def test_get_connection_switching(self):
|
||||
def switched(l):
|
||||
for i in l:
|
||||
|
Loading…
x
Reference in New Issue
Block a user