test_ok2/changelog/7489.improvement.rst

2 lines
181 B
ReStructuredText

The :func:`pytest.raises` function has a clearer error message when ``match`` equals the obtained string but is not a regex match. In this case it is suggested to escape the regex.