From e562282cbc060dfadbc7f78f6b1c3db40263f938 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Thu, 19 Nov 2015 10:39:50 +0100 Subject: [PATCH] Path must be posix for comparaison --- test/test_content/test_content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_content/test_content.py b/test/test_content/test_content.py index 191cbee1..3cec60b9 100644 --- a/test/test_content/test_content.py +++ b/test/test_content/test_content.py @@ -73,7 +73,7 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): """Shorten the path relative to the `songs` directory""" if isinstance(elem, SongRenderer): songpath = os.path.join(os.path.dirname(__file__), 'datadir', 'songs') - return os.path.normpath(files.relpath(elem.song.fullpath, songpath)) + return files.path2posix(files.relpath(elem.song.fullpath, songpath)) elif isinstance(elem, Section): return "{}:{}".format(elem.keyword, elem.name) else: