From bd22c136c3c80cd49c55b1aece17f0b9be7ba601 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Wed, 20 Jul 2016 21:10:12 +0200 Subject: [PATCH] normalize path --- test/test_content/test_content.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_content/test_content.py b/test/test_content/test_content.py index 78fef0ea..eb405c90 100644 --- a/test/test_content/test_content.py +++ b/test/test_content/test_content.py @@ -78,7 +78,9 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): test_path = files.path2posix(resource_filename(__name__, ""))+"/" for key in ['song', 'tex']: if key in elem: - elem[key] = os.path.normpath(elem[key]).replace(test_path, "") + elem[key] = files.path2posix( + os.path.normpath(elem[key]) + ).replace(test_path, "") return elem @classmethod