mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
convert: playlist: Construct winpath before assert
This commit is contained in:
parent
e4213714ba
commit
54d22bea6e
1 changed files with 2 additions and 1 deletions
|
|
@ -83,11 +83,12 @@ class M3UFileTest(unittest.TestCase):
|
|||
def test_playlist_load_unicode_windows(self):
|
||||
"""Test loading unicode paths from a playlist file."""
|
||||
the_playlist_file = path.join(RSRC, b'playlist_windows.m3u8')
|
||||
winpath = path.join('x:', 'This', 'is', 'å', 'path', 'to_a_file.mp3')
|
||||
m3ufile = M3UFile(the_playlist_file)
|
||||
m3ufile.load()
|
||||
self.assertEqual(
|
||||
m3ufile.media_list[0],
|
||||
path.join('x:', 'This', 'is', 'å', 'path', 'to_a_file.mp3') + '\n'
|
||||
winpath + '\n'
|
||||
)
|
||||
|
||||
def test_playlist_load_extm3u(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue