[py-svn] r8030 - py/dist/py/test/report/text
hpk at codespeak.net
hpk at codespeak.net
Sun Jan 2 12:30:05 CET 2005
Author: hpk
Date: Sun Jan 2 12:30:05 2005
New Revision: 8030
Modified:
py/dist/py/test/report/text/reporter.py
Log:
always show lineno+1 to humans
Modified: py/dist/py/test/report/text/reporter.py
==============================================================================
--- py/dist/py/test/report/text/reporter.py (original)
+++ py/dist/py/test/report/text/reporter.py Sun Jan 2 12:30:05 2005
@@ -149,7 +149,7 @@
if writeinfo is not None:
realpath, lineno = item.extpy.getfilelineno()
- location = "%s:%d" % (realpath.basename, lineno)
+ location = "%s:%d" % (realpath.basename, lineno+1)
resultstring = self.namemap.get(restype, result.__class__.__name__)
self.out.rewrite("%.3f %-2s %-20s %s%s" % (
elapsed, resultstring, location, item.reprcall(), writeinfo
More information about the pytest-commit
mailing list