remove outdated IOError test case (f5fdfd8a9f)

This commit is contained in:
Maximilian Hils 2014-09-04 14:15:49 +02:00
parent 4781c565a9
commit 39fa579dd5
2 changed files with 1 additions and 11 deletions

View File

@ -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

View File

@ -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: