From 9bf6a8165d6c6c77a7930adbd88c33062323d537 Mon Sep 17 00:00:00 2001 From: MinchinWeb Date: Thu, 12 Jul 2018 18:05:37 -0600 Subject: [PATCH] skip tests on Windows that require POSIX paths --- pelican/tests/test_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pelican/tests/test_utils.py b/pelican/tests/test_utils.py index b5b8b454..ed9acc70 100644 --- a/pelican/tests/test_utils.py +++ b/pelican/tests/test_utils.py @@ -685,6 +685,7 @@ class TestDateFormatter(unittest.TestCase): class TestSanitisedJoin(unittest.TestCase): + @unittest.skipIf(platform == 'win32', "requires POSIX filepaths") def test_detect_parent_breakout(self): with six.assertRaisesRegex( self, @@ -695,6 +696,7 @@ class TestSanitisedJoin(unittest.TestCase): "../test" ) + @unittest.skipIf(platform == 'win32', "requires POSIX filepaths") def test_detect_root_breakout(self): with six.assertRaisesRegex( self, @@ -705,6 +707,7 @@ class TestSanitisedJoin(unittest.TestCase): "/test" ) + @unittest.skipIf(platform == 'win32', "requires POSIX filepaths") def test_pass_deep_subpaths(self): self.assertEqual( utils.sanitised_join(