pytest-raises-without-exception (PT010)
Added in v0.0.208 · Related issues · View source
Derived from the flake8-pytest-style linter.
What it does
Checks for pytest.raises calls without an expected exception.
Why is this bad?
pytest.raises expects to receive an expected exception as its first
argument. If omitted, the pytest.raises call will fail at runtime.
Example
Use instead: