Skip to content

Commit bec2a58

Browse files
committed
test: A couple comments
1 parent 60fbc56 commit bec2a58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_bidsignore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def test_gitignore_battery(gitignore_test):
107107
"""Test our implementation against a gitignore battery."""
108108
filetree = FileTree.read_from_filesystem(gitignore_test)
109109
ignore = Ignore.from_file(filetree.children['.gitignore'])
110+
# Remove inverted patterns
110111
ignore.patterns = [patt for patt in ignore.patterns if not patt.startswith('!')]
111112

112113
expected_failures = Ignore(
@@ -117,7 +118,7 @@ def test_gitignore_battery(gitignore_test):
117118
'foo*.html',
118119
'/log/foo.log',
119120
'findthis*',
120-
# Nested gitignore swaps positive and negative patterns
121+
# Nested gitignore swaps expectations for all files
121122
'git-sample-3/',
122123
# Inversions in nested gitignores
123124
'arch/foo/kernel/vmlinux*',

0 commit comments

Comments
 (0)