Skip to content

Commit

Permalink
Fix lineno offset in show_skipped
Browse files Browse the repository at this point in the history
The line number is 0-based here, so add 1.
  • Loading branch information
blueyed committed Jul 4, 2017
1 parent 6908d93 commit c8cf18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pytest/skipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,4 +377,4 @@ def show_skipped(terminalreporter, lines):
reason = reason[9:]
lines.append(
"SKIP [%d] %s:%d: %s" %
(num, fspath, lineno, reason))
(num, fspath, lineno + 1, reason))

0 comments on commit c8cf18c

Please sign in to comment.