aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/exts/utils/snekbox/test_io.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/bot/exts/utils/snekbox/test_io.py b/tests/bot/exts/utils/snekbox/test_io.py
index 36ac720ba..a544a2056 100644
--- a/tests/bot/exts/utils/snekbox/test_io.py
+++ b/tests/bot/exts/utils/snekbox/test_io.py
@@ -1,11 +1,15 @@
-import unittest
+import platform
+from unittest import TestCase, skipIf
# noinspection PyProtectedMember
from bot.exts.utils.snekbox import _io
-class SnekboxIOTests(unittest.TestCase):
+class SnekboxIOTests(TestCase):
# noinspection SpellCheckingInspection
+ # Skip Windows since both pathlib and os strips the escape sequences
+ # and many of these aren't valid Windows file paths
+ @skipIf(platform.system() == "Windows", "File names normalizer tests requires Unix-like OS.")
def test_normalize_file_name(self):
"""Invalid file names should be normalized."""
cases = [