We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
The raises() method of _pytest.python_api has a clearer error message.
raises()
_pytest.python_api