File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ def test_gitignore_battery(gitignore_test):
107
107
"""Test our implementation against a gitignore battery."""
108
108
filetree = FileTree .read_from_filesystem (gitignore_test )
109
109
ignore = Ignore .from_file (filetree .children ['.gitignore' ])
110
+ # Remove inverted patterns
110
111
ignore .patterns = [patt for patt in ignore .patterns if not patt .startswith ('!' )]
111
112
112
113
expected_failures = Ignore (
@@ -117,7 +118,7 @@ def test_gitignore_battery(gitignore_test):
117
118
'foo*.html' ,
118
119
'/log/foo.log' ,
119
120
'findthis*' ,
120
- # Nested gitignore swaps positive and negative patterns
121
+ # Nested gitignore swaps expectations for all files
121
122
'git-sample-3/' ,
122
123
# Inversions in nested gitignores
123
124
'arch/foo/kernel/vmlinux*' ,
You can’t perform that action at this time.
0 commit comments