Skip to content

Commit 676ab58

Browse files
authored
amend
1 parent cd1ce97 commit 676ab58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

testing/test_recwarn.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,13 +404,12 @@ def test_match_regex(self) -> None:
404404
with pytest.warns(FutureWarning, match=r"must be \d+$"):
405405
warnings.warn("value must be 42", UserWarning)
406406

407-
def test_keep_ignores():
407+
def test_keep_ignores(self) -> None:
408408
with warnings.catch_warnings:
409409
warnings.filterwarnings("error", category=UserWarning)
410410
with pytest.warns(UserWarning, keep_ignores=True):
411411
warnings.warn("keep this warning", UserWarning)
412412

413-
def test_keep_ignores_():
414413
with pytest.raises(pytest.fail.Exception, match="DID NOT WARN"):
415414
with warnings.catch_warnings:
416415
warnings.filterwarnings("ignore", message="ignore this")

0 commit comments

Comments
 (0)