Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent brownie from crashing when skipping tests with -s #1220

Merged
merged 1 commit into from
Sep 2, 2021

Conversation

shuklaayush
Copy link
Contributor

@shuklaayush shuklaayush commented Aug 26, 2021

What I did

Added a hotfix to prevent brownie test -s from crashing when skipping tests

Related issue: Fixes #1215

How I did it

Added missing report.longrepr tuple. Ideally, it should contain the reason written in @pytest.mark.skip(reason=...), but I couldn't figure out a way to do that with the existing flow

How to verify it

Add @pytest.mark.skip() or @pytest.mark.require_network("dummy") to a test and run brownie test -s

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have included test cases
  • I have added an entry to the changelog

@iamdefinitelyahuman iamdefinitelyahuman merged commit 9d340f3 into eth-brownie:master Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skipping tests with @pytest.mark.skip() fails with -s option
2 participants