# HG changeset patch # User Franz Glasner # Date 1698575576 -3600 # Node ID 282c8e64d7b1e4142950b5435dcf3f365fc41869 # Parent 324ae9a56a75c70c70f7395f6b44d5448959712b FIX: tests on non-Windows diff -r 324ae9a56a75 -r 282c8e64d7b1 tests/test.py --- a/tests/test.py Sun Oct 29 10:17:22 2023 +0100 +++ b/tests/test.py Sun Oct 29 11:32:56 2023 +0100 @@ -2451,25 +2451,27 @@ self.assertEqual(u("PRE_VALUE FOR KEY-1_POST"), y) def test_nested_filter_normpath(self): + p1 = u(os.path.join("a", "b", "c")) cfg1 = { - u("path1"): u("a\\b\\c"), + u("path1"): p1, u("path2"): u("{{|{{path1}}/../d|normpath|}}") } cfg = cfg = configmix.config.Configuration(cfg1) np = cfg.getvarl_s(u("path2")) self.assertEqual( - os.path.normpath(u("a/b/d")), + os.path.normpath(u(os.path.join("a", "b", "d"))), np) def test_nested_filter_normpath_posixpath(self): + p1 = u(os.path.join("a", "b", "c")) cfg1 = { - u("path1"): u("a\\b\\c"), + u("path1"): p1, u("path2"): u("{{|{{path1}}/../d|normpath,posixpath|}}") } cfg = cfg = configmix.config.Configuration(cfg1) np = cfg.getvarl_s(u("path2")) self.assertEqual( - u("a/b/d"), + u(os.path.join("a", "b", "d")), np)