pytest-raises provides a `@pytest.mark.raises` decorator as an alternative to `pytest.raises` context manager. Current version 0.11 (no recent releases). Use is discouraged in favor of the built-in `pytest.raises` for new projects.
pip install pytest-raisesVerified import paths — ran on the pinned version, not inferred.
Use @pytest.mark.raises to assert an exception is raised.
Rewrite using `with pytest.raises(ValueError): ...`
Use `pytest.raises` inside a parametrized test function.
Switch to built-in `pytest.raises` for consistent error messages.
No dependency data recorded yet.