From bc6cd13356a5181baafc9b01385a21991695ade3 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Thu, 26 May 2016 22:19:58 +0530 Subject: Go Python 3 by default with the bytes conversion --- test/pathod/test_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/pathod') diff --git a/test/pathod/test_utils.py b/test/pathod/test_utils.py index 32ba3bdf..8026a576 100644 --- a/test/pathod/test_utils.py +++ b/test/pathod/test_utils.py @@ -30,7 +30,9 @@ def test_data_path(): def test_escape_unprintables(): - s = "".join([chr(i) for i in range(255)]) - e = utils.escape_unprintables(six.b(s)) + s = bytes(range(256)) + if six.PY2: + s = "".join([chr(i) for i in range(255)]) + e = utils.escape_unprintables(s) assert e.encode('ascii') assert "PATHOD_MARKER" not in e -- cgit v1.2.3