diff options
Diffstat (limited to 'tests/test_files.py')
-rw-r--r-- | tests/test_files.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_files.py b/tests/test_files.py index 512e4294..2f1bb83b 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -151,16 +151,21 @@ class MatcherTest(CoverageTest): assert matches == matcher.match(canonical), msg def test_tree_matcher(self): + case_folding = env.WINDOWS matches_to_try = [ (self.make_file("sub/file1.py"), True), (self.make_file("sub/file2.c"), True), (self.make_file("sub2/file3.h"), False), (self.make_file("sub3/file4.py"), True), (self.make_file("sub3/file5.c"), False), + (self.make_file("sub4/File5.py"), case_folding), + (self.make_file("sub5/file6.py"), case_folding), ] trees = [ files.canonical_filename("sub"), files.canonical_filename("sub3/file4.py"), + files.canonical_filename("sub4/file5.py"), + files.canonical_filename("SUB5/file6.py"), ] tm = TreeMatcher(trees) assert tm.info() == trees |