diff --git a/CHANGELOG.md b/CHANGELOG.md index d888679ec..7af877895 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/brownie/test/managers/base.py b/brownie/test/managers/base.py index 320d1115b..3f78d5108 100644 --- a/brownie/test/managers/base.py +++ b/brownie/test/managers/base.py @@ -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"):