diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-02-07 04:15:24 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-02-07 04:15:24 +0100 |
commit | 9526c5d56570652400929cc33f8fb36f361eecd6 (patch) | |
tree | 6c25603cbfc366ace56466b96da73cb258263368 /test/test_protocol_http.py | |
parent | d07029d575532122f3d1f81141710ba36ca307e0 (diff) | |
download | mitmproxy-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.py | 4 |
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") |