Skip to content

Commit bcb5b20

Browse files
Ignore ruff/flake8-pytest-style rule PT030
PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
1 parent 56b6be4 commit bcb5b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def test_only_version(version: str) -> None:
213213
def test_tag_regex1(tag: str, expected: str) -> None:
214214
if "+" in tag:
215215
# pytest bug wrt cardinality
216-
with pytest.warns(UserWarning):
216+
with pytest.warns(UserWarning): # noqa: PT030
217217
result = meta(tag, config=c)
218218
else:
219219
result = meta(tag, config=c)

0 commit comments

Comments
 (0)