From af5e18e26c4403d0d6c1fe03e4b191d6ea66a453 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 7 Jul 2010 13:07:34 +0200 Subject: [PATCH] small fix --HG-- branch : trunk --- py/_plugin/pytest_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]