We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cb5788 + 91f29c9 commit 7166e0bCopy full SHA for 7166e0b
pytest_github_actions_annotate_failures/plugin.py
@@ -49,8 +49,9 @@ def pytest_runtest_makereport(item, call):
49
if not rel_path.startswith(".."):
50
filesystempath = rel_path
51
52
- # 0-index to 1-index
53
- lineno += 1
+ if lineno is not None:
+ # 0-index to 1-index
54
+ lineno += 1
55
56
# get the name of the current failed test, with parametrize info
57
longrepr = report.head_line or item.name
0 commit comments