Path: fix test failure with MSYS2 build

The two path names have different path separators and thus are considered as different
This commit is contained in:
wmayer
2023-08-01 10:26:21 +02:00
committed by wwmayer
parent 15e9b45691
commit f803f148af

View File

@@ -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