Skip to content

Commit c8cf18c

Browse files
committed
Fix lineno offset in show_skipped
The line number is 0-based here, so add 1.
1 parent 6908d93 commit c8cf18c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_pytest/skipping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,4 @@ def show_skipped(terminalreporter, lines):
377377
reason = reason[9:]
378378
lines.append(
379379
"SKIP [%d] %s:%d: %s" %
380-
(num, fspath, lineno, reason))
380+
(num, fspath, lineno + 1, reason))

0 commit comments

Comments
 (0)