1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2024-12-21 10:59:03 +00:00

Fix exclude tests

This commit is contained in:
glubsy 2020-12-29 16:07:55 +01:00
parent 90c7c067b7
commit f0d3dec517

View File

@ -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)