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:
parent
90c7c067b7
commit
f0d3dec517
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user