Apply suggestions from code review

Co-authored-by: Zac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>
This commit is contained in:
Thomas Grainger
2023-06-25 16:08:53 +01:00
committed by GitHub
parent 4cd95eeabf
commit 45f1a462d5
3 changed files with 5 additions and 5 deletions

View File

@@ -284,7 +284,7 @@ def test_importing_instance_is_deprecated(pytester: Pytester) -> None:
def test_fixture_disallow_on_marked_functions():
"""Test that applying @pytest.fixture to a marked function warns (#3364)."""
with pytest.warns(
pytest.PytestDeprecationWarning,
pytest.PytestRemovedIn8Warning,
match=r"Marks applied to fixtures have no effect",
) as record:
@@ -303,7 +303,7 @@ def test_fixture_disallow_on_marked_functions():
def test_fixture_disallow_marks_on_fixtures():
"""Test that applying a mark to a fixture warns (#3364)."""
with pytest.warns(
pytest.PytestDeprecationWarning,
pytest.PytestRemovedIn8Warning,
match=r"Marks applied to fixtures have no effect",
) as record:
@@ -319,7 +319,7 @@ def test_fixture_disallow_marks_on_fixtures():
def test_fixture_disallowed_between_marks():
"""Test that applying a mark to a fixture warns (#3364)."""
with pytest.warns(
pytest.PytestDeprecationWarning,
pytest.PytestRemovedIn8Warning,
match=r"Marks applied to fixtures have no effect",
) as record: