diff --git a/core/tests/exclude_test.py b/core/tests/exclude_test.py index 8bfc8cc7..de5e46c5 100644 --- a/core/tests/exclude_test.py +++ b/core/tests/exclude_test.py @@ -11,6 +11,7 @@ from xml.etree import ElementTree as ET # from pytest import raises from hscommon.testutil import eq_ +from hscommon.plat import ISWINDOWS from .base import DupeGuru from ..exclude import ExcludeList, ExcludeDict, default_regexes, AlreadyThereException @@ -246,7 +247,10 @@ class TestCaseCompiledList(): def test_compiled_files(self): # is path separator checked properly to yield the output - regex1 = r"test/one/sub" + if ISWINDOWS: + regex1 = r"test\\one\\sub" + else: + regex1 = r"test/one/sub" self.e_separate.add(regex1) self.e_separate.mark(regex1) self.e_union.add(regex1)