From e621e8590c54201d8d66d37100435d8a8035e2a0 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 29 Nov 2017 13:37:28 +0100 Subject: [PATCH] Improve IntegrationTestCase.__repr__ Having the path (together with the line only) makes it easy to go to the actual test. --- test/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run.py b/test/run.py index 00b0c651..a3b0c0df 100755 --- a/test/run.py +++ b/test/run.py @@ -158,7 +158,7 @@ class IntegrationTestCase(object): return self.line_nr - 1 def __repr__(self): - return '<%s: %s:%s:%s>' % (self.__class__.__name__, self.module_name, + return '<%s: %s:%s %r>' % (self.__class__.__name__, self.path, self.line_nr_test, self.line.rstrip()) def script(self):