diff --git a/py/_plugin/pytest_runner.py b/py/_plugin/pytest_runner.py index 4535f874d..095407e29 100644 --- a/py/_plugin/pytest_runner.py +++ b/py/_plugin/pytest_runner.py @@ -124,7 +124,7 @@ class BaseReport(object): def _getcrashline(self): try: - return self.longrepr.reprcrash + return str(self.longrepr.reprcrash) except AttributeError: try: return str(self.longrepr)[:50]