Skip to content

Commit

Permalink
fix: prevent crash when skipping tests with -s
Browse files Browse the repository at this point in the history
  • Loading branch information
shuklaayush committed Aug 26, 2021
1 parent 29657f9 commit e4051a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions brownie/test/managers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def pytest_report_teststatus(self, report):
path, test_id = self._test_id(report.nodeid)
idx = self.node_map[path].index(test_id)
report.outcome = convert_outcome(self.results[path][idx])
report.longrepr = (path, None, 'Skipped') # File path, line no., reason
return "skipped", "s", "SKIPPED"
return "", "", ""
if hasattr(report, "wasxfail"):
Expand Down

0 comments on commit e4051a7

Please sign in to comment.