diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-16 20:19:52 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-16 20:19:52 +0200 |
commit | e1659f3fcf83b5993b776a4ef3d2de70fbe27aa2 (patch) | |
tree | c0eba50b522d1d0183b057e9cae7bf7cc38c4fc3 /test/http/http2/test_frames.py | |
parent | 2f9c566e480c377566a0ae044d698a75b45cd54c (diff) | |
parent | 265f31e8782ee9da511ce4b63aa2da00221cbf66 (diff) | |
download | mitmproxy-e1659f3fcf83b5993b776a4ef3d2de70fbe27aa2.tar.gz mitmproxy-e1659f3fcf83b5993b776a4ef3d2de70fbe27aa2.tar.bz2 mitmproxy-e1659f3fcf83b5993b776a4ef3d2de70fbe27aa2.zip |
Merge pull request #92 from mitmproxy/python3
Python3 & HTTP1 Refactor
Diffstat (limited to 'test/http/http2/test_frames.py')
-rw-r--r-- | test/http/http2/test_frames.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/http/http2/test_frames.py b/test/http/http2/test_frames.py index 5d5cb0ba..4c89b023 100644 --- a/test/http/http2/test_frames.py +++ b/test/http/http2/test_frames.py @@ -1,4 +1,4 @@ -import cStringIO +from io import BytesIO from nose.tools import assert_equal from netlib import tcp, tutils @@ -7,7 +7,7 @@ from netlib.http.http2.frame import * def hex_to_file(data): data = data.decode('hex') - return tcp.Reader(cStringIO.StringIO(data)) + return tcp.Reader(BytesIO(data)) def test_invalid_flags(): @@ -39,7 +39,7 @@ def test_too_large_frames(): flags=Frame.FLAG_END_STREAM, stream_id=0x1234567, payload='foobar' * 3000) - tutils.raises(FrameSizeError, f.to_bytes) + tutils.raises(HttpSyntaxException, f.to_bytes) def test_data_frame_to_bytes(): |