aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_protocol_http.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-02-07 04:15:24 +0100
committerMaximilian Hils <git@maximilianhils.com>2014-02-07 04:15:24 +0100
commit9526c5d56570652400929cc33f8fb36f361eecd6 (patch)
tree6c25603cbfc366ace56466b96da73cb258263368 /test/test_protocol_http.py
parentd07029d575532122f3d1f81141710ba36ca307e0 (diff)
downloadmitmproxy-9526c5d56570652400929cc33f8fb36f361eecd6.tar.gz
mitmproxy-9526c5d56570652400929cc33f8fb36f361eecd6.tar.bz2
mitmproxy-9526c5d56570652400929cc33f8fb36f361eecd6.zip
fix race conditions in test suite
Diffstat (limited to 'test/test_protocol_http.py')
-rw-r--r--test/test_protocol_http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_protocol_http.py b/test/test_protocol_http.py
index 9e043049..bf569fb7 100644
--- a/test/test_protocol_http.py
+++ b/test/test_protocol_http.py
@@ -80,7 +80,7 @@ class TestHTTPResponse:
assert HTTPResponse.from_stream(s, "GET").code == 204
s = StringIO(_s)
- r = HTTPResponse.from_stream(s, "HEAD")
+ r = HTTPResponse.from_stream(s, "HEAD") # HEAD must not have content by spec. We should leave it on the pipe.
assert r.code == 200
assert r.content == ""
- tutils.raises("Invalid server response: 'content", HTTPResponse.from_stream, s, "GET") \ No newline at end of file
+ tutils.raises("Invalid server response: 'content", HTTPResponse.from_stream, s, "GET")