aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod
diff options
context:
space:
mode:
Diffstat (limited to 'test/pathod')
-rw-r--r--test/pathod/test_utils.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/pathod/test_utils.py b/test/pathod/test_utils.py
index 4e891ad9..32ba3bdf 100644
--- a/test/pathod/test_utils.py
+++ b/test/pathod/test_utils.py
@@ -1,6 +1,8 @@
from pathod import utils
import tutils
+import six
+
def test_membool():
m = utils.MemBool()
@@ -27,14 +29,8 @@ def test_data_path():
tutils.raises(ValueError, utils.data.path, "nonexistent")
-def test_inner_repr():
- assert utils.inner_repr("\x66") == "\x66"
- assert utils.inner_repr(u"foo") == "foo"
- assert utils.inner_repr(b"foo") == "foo"
-
-
def test_escape_unprintables():
s = "".join([chr(i) for i in range(255)])
- e = utils.escape_unprintables(s)
+ e = utils.escape_unprintables(six.b(s))
assert e.encode('ascii')
- assert not "PATHOD_MARKER" in e
+ assert "PATHOD_MARKER" not in e