From d6821ac525eeac4ae2b34c6d1e497e41ca5c36b3 Mon Sep 17 00:00:00 2001 From: mahiro72 Date: Sun, 14 Dec 2025 03:46:08 +0900 Subject: [PATCH] add; mactch and check keyword arguments test --- .../test/fixtures/flake8_pytest_style/PT010.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT010.py b/crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT010.py index e6cc58cbc3..4191976043 100644 --- a/crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT010.py +++ b/crates/ruff_linter/resources/test/fixtures/flake8_pytest_style/PT010.py @@ -9,3 +9,15 @@ def test_ok(): def test_error(): with pytest.raises(UnicodeError): pass + +def test_match_only(): + with pytest.raises(match="some error message"): + pass + +def test_check_only(): + with pytest.raises(check=lambda e: True): + pass + +def test_match_and_check(): + with pytest.raises(match="some error message", check=lambda e: True): + pass