pytest-dev__pytest-5413
str() on the pytest.raises context variable doesn't behave same as normal exception catch
Verdict: the fix is stated in the issue (Tier A).
So I think a good solution is to simply delete the `__str__` method.
The text states the fix: “So I think a good solution is to simply delete the `__str__` method.”
All SWE-bench Lite tasks · more pytest-dev/pytest tasks · How the check works