diff options
author | J0J0 T <jojo@peek-a-boo.at> | 2022-08-28 13:44:19 +0200 |
---|---|---|
committer | J0J0 Todos <jojo@peek-a-boo.at> | 2023-03-29 07:46:08 +0200 |
commit | 31b9e7afeb90978bdec72aeed8d0170fd3eec479 (patch) | |
tree | af5f8515b64b252730843b7e83b34c2c9679c304 | |
parent | 004d10a143fcb89291ead9c4293be828b7353d8e (diff) |
convert: playlist: Construct Windows path programatically
-rw-r--r-- | test/test_m3ufile.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_m3ufile.py b/test/test_m3ufile.py index f9fd37dbd..e250e7b3a 100644 --- a/test/test_m3ufile.py +++ b/test/test_m3ufile.py @@ -85,8 +85,10 @@ class M3UFileTest(unittest.TestCase): the_playlist_file = path.join(RSRC, b'playlist_windows.m3u8') m3ufile = M3UFile(the_playlist_file) m3ufile.load() - self.assertEqual(m3ufile.media_list[0], - 'x:\This\is\å\path\to_a_file.mp3\n') + self.assertEqual( + m3ufile.media_list[0], + path.join('x:', 'This', 'is', 'å', 'path', 'to_a_file.mp3') + '\n' + ) def test_playlist_load_extm3u(self): """Test loading a playlist with an #EXTM3U header.""" |