mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
skip tests on Windows that require POSIX paths
This commit is contained in:
parent
9e89a95ad9
commit
9bf6a8165d
1 changed files with 3 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue