Merge pull request #7158 from CarycaKatarzyna/issue_7076

This commit is contained in:
Bruno Oliveira
2020-05-08 07:56:03 -03:00
committed by GitHub
3 changed files with 20 additions and 2 deletions

View File

@@ -168,8 +168,8 @@ def pytest_runtest_makereport(item, call):
# to point to the item definition, otherwise it will display
# the location of where the skip exception was raised within pytest
_, _, reason = rep.longrepr
filename, line = item.location[:2]
rep.longrepr = filename, line + 1, reason
filename, line = item.reportinfo()[:2]
rep.longrepr = str(filename), line + 1, reason
# called by terminalreporter progress reporting