From fd275ee8be42e97b624dc6c33f4ebae8da4b9866 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 1 Aug 2023 10:26:21 +0200 Subject: [PATCH] Path: fix test failure with MSYS2 build The two path names have different path separators and thus are considered as different --- src/Mod/Path/PathTests/TestPathPost.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathTests/TestPathPost.py b/src/Mod/Path/PathTests/TestPathPost.py index 2753a696a8..d9643577d7 100644 --- a/src/Mod/Path/PathTests/TestPathPost.py +++ b/src/Mod/Path/PathTests/TestPathPost.py @@ -474,7 +474,10 @@ class TestOutputNameSubstitution(unittest.TestCase): outlist = PathPost.buildPostList(self.job) subpart, objs = outlist[0] filename = PathPost.resolveFileName(self.job, subpart, 0) - self.assertEqual(filename, f"{self.macro}outfile.nc") + self.assertEqual( + os.path.normpath(filename), + os.path.normpath(f"{self.macro}outfile.nc") + ) def test040(self): # unused substitution strings should be ignored