From e1e46df1b3f9f38028bf4e84eaa1f335e2ff48df Mon Sep 17 00:00:00 2001 From: Bruno Cauet Date: Thu, 12 Feb 2015 11:56:54 +0100 Subject: [PATCH] Fix path truncation test: really use bytes Test is to use bytes but because of __future__.unicode_literals it used unicode. --- test/test_library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_library.py b/test/test_library.py index 0bac0f173..3515c855c 100644 --- a/test/test_library.py +++ b/test/test_library.py @@ -1007,8 +1007,8 @@ class PathStringTest(_common.TestCase): class PathTruncationTest(_common.TestCase): def test_truncate_bytestring(self): with _common.platform_posix(): - p = util.truncate_path('abcde/fgh', 4) - self.assertEqual(p, 'abcd/fgh') + p = util.truncate_path(b'abcde/fgh', 4) + self.assertEqual(p, b'abcd/fgh') def test_truncate_unicode(self): with _common.platform_posix():