Go Python 3 by default with the bytes conversion

This commit is contained in:
Shadab Zafar 2016-05-26 22:19:58 +05:30
parent 4ec56808dd
commit bc6cd13356

View File

@ -30,7 +30,9 @@ def test_data_path():
def test_escape_unprintables(): def test_escape_unprintables():
s = "".join([chr(i) for i in range(255)]) s = bytes(range(256))
e = utils.escape_unprintables(six.b(s)) if six.PY2:
s = "".join([chr(i) for i in range(255)])
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