mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 10:34:09 +01:00
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
This commit is contained in:
parent
a0a9e2f22d
commit
4bbfe85c66
1 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue