Skip to content

Commit 38bbe61

Browse files
authored
Add an extra colon to the "data: <file>:<line>" output from failing tests. (#1962)
@gnprice: With this small change my Emacs "compile" mode lets me jump to that line directly.
1 parent e7ddab1 commit 38bbe61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/test/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def repr_failure(self, excinfo):
405405
self.parent._prunetraceback(excinfo)
406406
excrepr = excinfo.getrepr(style='short')
407407

408-
return "data: {}:{}\n{}".format(self.obj.file, self.obj.line, excrepr)
408+
return "data: {}:{}:\n{}".format(self.obj.file, self.obj.line, excrepr)
409409

410410

411411
class DataSuite:

0 commit comments

Comments
 (0)