diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2013-02-24 11:08:43 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2013-02-24 11:08:43 +1300 |
commit | c6f9a2d74dc0b2d9185743a02e4c1410983f0c3f (patch) | |
tree | 9894cfdcbd22ae49b6ae7d51c7b20a2438b7d922 /test | |
parent | 7d185356655fa2f40c452c273a3cd039360d20c1 (diff) | |
download | mitmproxy-c6f9a2d74dc0b2d9185743a02e4c1410983f0c3f.tar.gz mitmproxy-c6f9a2d74dc0b2d9185743a02e4c1410983f0c3f.tar.bz2 mitmproxy-c6f9a2d74dc0b2d9185743a02e4c1410983f0c3f.zip |
More accurate description of an HTTP read error, make pyflakes happy.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_http.py | 2 | ||||
-rw-r--r-- | test/test_tcp.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test_http.py b/test/test_http.py index ed16fb4a..666dfdbb 100644 --- a/test/test_http.py +++ b/test/test_http.py @@ -222,7 +222,7 @@ def test_read_response(): r = cStringIO.StringIO(data) return http.read_response(r, method, limit) - tutils.raises("blank server response", tst, "", "GET", None) + tutils.raises("server disconnect", tst, "", "GET", None) tutils.raises("invalid server response", tst, "foo", "GET", None) data = """ HTTP/1.1 200 OK diff --git a/test/test_tcp.py b/test/test_tcp.py index f12a131b..5b616969 100644 --- a/test/test_tcp.py +++ b/test/test_tcp.py @@ -1,4 +1,4 @@ -import cStringIO, threading, Queue, time, socket +import cStringIO, Queue, time, socket from netlib import tcp, certutils, test import mock import tutils |