Skip to content

Commit 8a5b6d3

Browse files
[flake8-pytest-style] Note the pytest 10 removal of yield_fixture in PT020
pytest-dev/pytest#14755 slated the decorator for removal in pytest 10; it now raises `PytestRemovedIn10Warning` instead of a bare deprecation warning.
1 parent 991de8a commit 8a5b6d3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • crates/ruff_linter/src/rules/flake8_pytest_style/rules

‎crates/ruff_linter/src/rules/flake8_pytest_style/rules/fixture.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ impl Violation for PytestFixtureParamWithoutValue {
387387
///
388388
/// ## Why is this bad?
389389
/// `pytest.yield_fixture` has been deprecated since pytest 6.2, and is a plain
390-
/// alias for `pytest.fixture`. `pytest.fixture` should be used instead.
390+
/// alias for `pytest.fixture`. It will be removed in pytest 10, so
391+
/// `pytest.fixture` should be used instead.
391392
///
392393
/// ## Example
393394
/// ```python

0 commit comments

Comments
 (0)