From 4bbfe85c66856d6e110f0bf229fac15e04d02c2e Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Fri, 17 Jun 2016 01:48:27 -0400 Subject: [PATCH] is_path_query takes unicode, so do that test_query This fixes all but one instance that I'm not yet sure how to fix --- test/test_query.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_query.py b/test/test_query.py index 2f8014015..146d0d3c1 100644 --- a/test/test_query.py +++ b/test/test_query.py @@ -604,7 +604,7 @@ class PathQueryTest(_common.LibTestCase, TestHelper, AssertsMixin): self.assertTrue(is_path(parent)) # Some non-existent path. - self.assertFalse(is_path(path + b'baz')) + self.assertFalse(is_path(path + u'baz')) finally: # Restart the `os.path.exists` patch. @@ -621,10 +621,10 @@ class PathQueryTest(_common.LibTestCase, TestHelper, AssertsMixin): cur_dir = os.getcwd() try: os.chdir(self.temp_dir) - self.assertTrue(is_path(b'foo/')) - self.assertTrue(is_path(b'foo/bar')) - self.assertTrue(is_path(b'foo/bar:tagada')) - self.assertFalse(is_path(b'bar')) + self.assertTrue(is_path(u'foo/')) + self.assertTrue(is_path(u'foo/bar')) + self.assertTrue(is_path(u'foo/bar:tagada')) + self.assertFalse(is_path(u'bar')) finally: os.chdir(cur_dir)