Skip to content

Commit

Permalink
Improve IntegrationTestCase.__repr__
Browse files Browse the repository at this point in the history
Having the path (together with the line only) makes it easy to go to the
actual test.
  • Loading branch information
blueyed authored and davidhalter committed Dec 14, 2017
1 parent 6291568 commit e621e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/run.py
Expand Up @@ -158,7 +158,7 @@ def line_nr_test(self):
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):
Expand Down

0 comments on commit e621e85

Please sign in to comment.