From 31012d782f64727de1d86662139e9ec6618043c5 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 2 Jun 2016 12:53:12 +1200 Subject: Consolidate some functions to strutils.bytes_to_escaped_str --- test/pathod/test_utils.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'test/pathod/test_utils.py') diff --git a/test/pathod/test_utils.py b/test/pathod/test_utils.py index ab4abbae..a46a523a 100644 --- a/test/pathod/test_utils.py +++ b/test/pathod/test_utils.py @@ -1,8 +1,6 @@ from pathod import utils import tutils -import six - def test_membool(): m = utils.MemBool() @@ -20,12 +18,3 @@ def test_parse_anchor_spec(): def test_data_path(): tutils.raises(ValueError, utils.data.path, "nonexistent") - - -def test_escape_unprintables(): - 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