@@ -459,14 +459,12 @@ def test_timeout():
459
459
def test_linematcher_with_nonlist () -> None :
460
460
"""Test LineMatcher with regard to passing in a set (accidentally)."""
461
461
lm = LineMatcher ([])
462
-
463
462
with pytest .raises (AssertionError ):
464
463
lm .fnmatch_lines (set ())
465
464
with pytest .raises (AssertionError ):
466
465
lm .fnmatch_lines ({})
467
466
lm .fnmatch_lines ([])
468
467
lm .fnmatch_lines (())
469
-
470
468
assert lm ._getlines ({}) == {}
471
469
assert lm ._getlines (set ()) == set ()
472
470
@@ -500,7 +498,7 @@ def test_linematcher_match_failure() -> None:
500
498
501
499
502
500
@pytest .mark .parametrize ("function" , ["no_fnmatch_line" , "no_re_match_line" ])
503
- def test_no_matching (function ) -> None :
501
+ def test_linematcher_no_matching (function ) -> None :
504
502
if function == "no_fnmatch_line" :
505
503
good_pattern = "*.py OK*"
506
504
bad_pattern = "*X.py OK*"
@@ -548,7 +546,7 @@ def test_no_matching(function) -> None:
548
546
func (bad_pattern ) # bad pattern does not match any line: passes
549
547
550
548
551
- def test_no_matching_after_match () -> None :
549
+ def test_linematcher_no_matching_after_match () -> None :
552
550
lm = LineMatcher (["1" , "2" , "3" ])
553
551
lm .fnmatch_lines (["1" , "3" ])
554
552
with pytest .raises (Failed ) as e :
0 commit comments