diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-04 14:15:49 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-04 14:15:49 +0200 |
commit | 39fa579dd564823171f804c4307ab93db4d3b961 (patch) | |
tree | 2c16e7a6f9718320b1ea2802778b95c4578d7908 /test/test_server.py | |
parent | 4781c565a97b37d3401f87cd40b1d2c0fccba9ce (diff) | |
download | mitmproxy-39fa579dd564823171f804c4307ab93db4d3b961.tar.gz mitmproxy-39fa579dd564823171f804c4307ab93db4d3b961.tar.bz2 mitmproxy-39fa579dd564823171f804c4307ab93db4d3b961.zip |
remove outdated IOError test case (https://github.com/mitmproxy/netlib/commit/f5fdfd8a9f17e0fe213a9cf54acae84e4bc31462)
Diffstat (limited to 'test/test_server.py')
-rw-r--r-- | test/test_server.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/test_server.py b/test/test_server.py index 3125c2f3..24d0ca5c 100644 --- a/test/test_server.py +++ b/test/test_server.py @@ -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: |