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 002a5cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This changelog format is based on [Keep a Changelog](https://keepachangelog.com/
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/eth-brownie/brownie)
- Prevent brownie from crashing when skipping tests with -s ([#1220](https://github.com/eth-brownie/brownie/pull/1220))

## [1.16.2](https://github.com/eth-brownie/brownie/tree/v1.16.2) - 2021-08-24
### Added
Expand Down
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 002a5cd

Please sign in to comment.