Skip to content

Commit 09a0e45

Browse files
committed
testing/test_pytester.py: cosmetics
1 parent 3645ba3 commit 09a0e45

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

testing/test_pytester.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,14 +459,12 @@ def test_timeout():
459459
def test_linematcher_with_nonlist() -> None:
460460
"""Test LineMatcher with regard to passing in a set (accidentally)."""
461461
lm = LineMatcher([])
462-
463462
with pytest.raises(AssertionError):
464463
lm.fnmatch_lines(set())
465464
with pytest.raises(AssertionError):
466465
lm.fnmatch_lines({})
467466
lm.fnmatch_lines([])
468467
lm.fnmatch_lines(())
469-
470468
assert lm._getlines({}) == {}
471469
assert lm._getlines(set()) == set()
472470

@@ -500,7 +498,7 @@ def test_linematcher_match_failure() -> None:
500498

501499

502500
@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:
504502
if function == "no_fnmatch_line":
505503
good_pattern = "*.py OK*"
506504
bad_pattern = "*X.py OK*"
@@ -548,7 +546,7 @@ def test_no_matching(function) -> None:
548546
func(bad_pattern) # bad pattern does not match any line: passes
549547

550548

551-
def test_no_matching_after_match() -> None:
549+
def test_linematcher_no_matching_after_match() -> None:
552550
lm = LineMatcher(["1", "2", "3"])
553551
lm.fnmatch_lines(["1", "3"])
554552
with pytest.raises(Failed) as e:

0 commit comments

Comments
 (0)