py3++: test_protocol_http2
This commit is contained in:
parent
a212ce1f63
commit
c870d26bc7
|
@ -126,7 +126,7 @@ class _Http2TestBase(object):
|
|||
client.wfile.flush()
|
||||
|
||||
# read CONNECT response
|
||||
while client.rfile.readline() != "\r\n":
|
||||
while client.rfile.readline() != b"\r\n":
|
||||
pass
|
||||
|
||||
client.convert_to_ssl(alpn_protos=[b'h2'])
|
||||
|
@ -203,7 +203,7 @@ class TestSimple(_Http2TestBase, _Http2ServerBase):
|
|||
(':path', '/'),
|
||||
('ClIeNt-FoO', 'client-bar-1'),
|
||||
('ClIeNt-FoO', 'client-bar-2'),
|
||||
], body='my request body echoed back to me')
|
||||
], body=b'my request body echoed back to me')
|
||||
|
||||
done = False
|
||||
while not done:
|
||||
|
@ -275,7 +275,7 @@ class TestWithBodies(_Http2TestBase, _Http2ServerBase):
|
|||
(':scheme', 'https'),
|
||||
(':path', '/'),
|
||||
],
|
||||
body='foobar with request body',
|
||||
body=b'foobar with request body',
|
||||
)
|
||||
|
||||
done = False
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -16,7 +16,7 @@ commands =
|
|||
|
||||
[testenv:py35]
|
||||
setenv =
|
||||
TESTS = test/netlib test/pathod/ test/mitmproxy/script test/mitmproxy/test_contentview.py test/mitmproxy/test_custom_contentview.py test/mitmproxy/test_app.py test/mitmproxy/test_controller.py test/mitmproxy/test_fuzzing.py test/mitmproxy/test_script.py test/mitmproxy/test_web_app.py test/mitmproxy/test_utils.py test/mitmproxy/test_stateobject.py test/mitmproxy/test_cmdline.py test/mitmproxy/test_contrib_tnetstring.py test/mitmproxy/test_proxy.py test/mitmproxy/test_protocol_http1.py test/mitmproxy/test_platform_pf.py test/mitmproxy/test_server.py test/mitmproxy/test_filt.py test/mitmproxy/test_flow_export.py test/mitmproxy/test_web_master.py test/mitmproxy/test_flow_format_compat.py test/mitmproxy/test_examples.py
|
||||
TESTS = test/netlib test/pathod/ test/mitmproxy/script test/mitmproxy/test_contentview.py test/mitmproxy/test_custom_contentview.py test/mitmproxy/test_app.py test/mitmproxy/test_controller.py test/mitmproxy/test_fuzzing.py test/mitmproxy/test_script.py test/mitmproxy/test_web_app.py test/mitmproxy/test_utils.py test/mitmproxy/test_stateobject.py test/mitmproxy/test_cmdline.py test/mitmproxy/test_contrib_tnetstring.py test/mitmproxy/test_proxy.py test/mitmproxy/test_protocol_http1.py test/mitmproxy/test_platform_pf.py test/mitmproxy/test_server.py test/mitmproxy/test_filt.py test/mitmproxy/test_flow_export.py test/mitmproxy/test_web_master.py test/mitmproxy/test_flow_format_compat.py test/mitmproxy/test_examples.py test/mitmproxy/test_protocol_http2.py
|
||||
HOME = {envtmpdir}
|
||||
|
||||
[testenv:docs]
|
||||
|
|
Loading…
Reference in New Issue