From 54d22bea6e0a5170cd8e8e6f016a7029a53fc0dd Mon Sep 17 00:00:00 2001 From: J0J0 T Date: Sun, 28 Aug 2022 14:21:58 +0200 Subject: [PATCH] convert: playlist: Construct winpath before assert --- test/test_m3ufile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_m3ufile.py b/test/test_m3ufile.py index e250e7b3a..a8cb09f66 100644 --- a/test/test_m3ufile.py +++ b/test/test_m3ufile.py @@ -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):