@@ -171,7 +171,7 @@ def test_tree_matcher(self):
171
171
files .canonical_filename ("sub4/file5.py" ),
172
172
files .canonical_filename ("SUB5/file6.py" ),
173
173
]
174
- tm = TreeMatcher (trees , "test" )
174
+ tm = TreeMatcher (trees )
175
175
assert tm .info () == sorted (trees )
176
176
for filepath , matches in matches_to_try :
177
177
self .assertMatches (tm , filepath , matches )
@@ -194,7 +194,7 @@ def test_module_matcher(self):
194
194
('yourmain' , False ),
195
195
]
196
196
modules = ['test' , 'py.test' , 'mymain' ]
197
- mm = ModuleMatcher (modules , "test" )
197
+ mm = ModuleMatcher (modules )
198
198
assert mm .info () == modules
199
199
for modulename , matches in matches_to_try :
200
200
assert mm .match (modulename ) == matches , modulename
@@ -207,23 +207,23 @@ def test_fnmatch_matcher(self):
207
207
(self .make_file ("sub3/file4.py" ), True ),
208
208
(self .make_file ("sub3/file5.c" ), False ),
209
209
]
210
- fnm = FnmatchMatcher (["*.py" , "*/sub2/*" ], "test" )
210
+ fnm = FnmatchMatcher (["*.py" , "*/sub2/*" ])
211
211
assert fnm .info () == ["*.py" , "*/sub2/*" ]
212
212
for filepath , matches in matches_to_try :
213
213
self .assertMatches (fnm , filepath , matches )
214
214
215
215
def test_fnmatch_matcher_overload (self ):
216
- fnm = FnmatchMatcher (["*x%03d*.txt" % i for i in range (500 )], "test" )
216
+ fnm = FnmatchMatcher (["*x%03d*.txt" % i for i in range (500 )])
217
217
self .assertMatches (fnm , "x007foo.txt" , True )
218
218
self .assertMatches (fnm , "x123foo.txt" , True )
219
219
self .assertMatches (fnm , "x798bar.txt" , False )
220
220
221
221
def test_fnmatch_windows_paths (self ):
222
222
# We should be able to match Windows paths even if we are running on
223
223
# a non-Windows OS.
224
- fnm = FnmatchMatcher (["*/foo.py" ], "test" )
224
+ fnm = FnmatchMatcher (["*/foo.py" ])
225
225
self .assertMatches (fnm , r"dir\foo.py" , True )
226
- fnm = FnmatchMatcher ([r"*\foo.py" ], "test" )
226
+ fnm = FnmatchMatcher ([r"*\foo.py" ])
227
227
self .assertMatches (fnm , r"dir\foo.py" , True )
228
228
229
229
0 commit comments