mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
![]() This fix closes #17026 ## Summary The check for the `PytestRaisesTooBroad` rule is now skipped if there is a second positional argument present, which means `pytest.raises` is used as a function. ## Test Plan Tested on the example from the issue, which now passes the check. ```Python3 pytest.raises(Exception, func, *func_args, **func_kwargs).match("error message") ``` --------- Co-authored-by: Micha Reiser <micha@reiser.io> |
||
---|---|---|
.. | ||
fixtures | ||
package | ||
project | ||
__init__.py | ||
disallowed_rule_names.txt |