mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Go Python 3 by default with the bytes conversion
This commit is contained in:
parent
4ec56808dd
commit
bc6cd13356
@ -30,7 +30,9 @@ def test_data_path():
|
|||||||
|
|
||||||
|
|
||||||
def test_escape_unprintables():
|
def test_escape_unprintables():
|
||||||
|
s = bytes(range(256))
|
||||||
|
if six.PY2:
|
||||||
s = "".join([chr(i) for i in range(255)])
|
s = "".join([chr(i) for i in range(255)])
|
||||||
e = utils.escape_unprintables(six.b(s))
|
e = utils.escape_unprintables(s)
|
||||||
assert e.encode('ascii')
|
assert e.encode('ascii')
|
||||||
assert "PATHOD_MARKER" not in e
|
assert "PATHOD_MARKER" not in e
|
||||||
|
Loading…
Reference in New Issue
Block a user