mirror of
https://github.com/beetbox/beets.git
synced 2026-01-23 08:33:02 +01:00
Fix path truncation test: really use bytes
Test is to use bytes but because of __future__.unicode_literals it used unicode.
This commit is contained in:
parent
54abd1a510
commit
e1e46df1b3
1 changed files with 2 additions and 2 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue