Skip to content

Conversation

nicoddemus
Copy link
Member

Fix #7864
Fix #9218

Closes #8343
Closes #7877

@nicoddemus nicoddemus force-pushed the better-filter-warnings-messages branch from c0b7c5f to 6bb36bd Compare October 21, 2021 15:12
@nicoddemus
Copy link
Member Author

Instead of an internal traceback on errors, we get a much nicer error message:

λ python -m pytest test_foo.py ERROR: while parsing the following warning configuration: ignore::foo.MyWarning::-1 This error occurred: foo.py:2: in <module> import invalid E ModuleNotFoundError: No module named 'invalid' 
@nicoddemus nicoddemus force-pushed the better-filter-warnings-messages branch 2 times, most recently from 4fc2b2f to 9dcf55e Compare October 21, 2021 15:40
Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lovely 👍

@nicoddemus nicoddemus force-pushed the better-filter-warnings-messages branch from 9dcf55e to f5fd2fb Compare October 21, 2021 16:15
Copy link
Member

@bluetech bluetech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much nicer!

@nicoddemus nicoddemus merged commit 61e506a into pytest-dev:main Oct 22, 2021
@nicoddemus nicoddemus deleted the better-filter-warnings-messages branch October 22, 2021 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants