How to make pytest.raises context variable str() match normal exception handling?