-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
make async tests and tests that return non-None fail instead of warn #12346
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Hi Phebe! This looks good to me overall - three things to do:
- Moving the exception definition, as below
- Doing the various TODOs in comments
- Edit the top comment to link to the issue for awareness and auto-closing, and briefly describe the issue.
Hi folks, Sorry why is this being done? Is there an issue related to it? |
Suggested in #11372 🙂 (and we're at the PyCon US sprints, so most communication about this has been verbal instead of online) |
Ahh OK, no worries, thanks @Zac-HD! If possible it helps adding the issue number in the PR description for context. 👍 |
…. Make tests fail instead of raising warning/exception. fix tests. add changelog.
Did an overhaul of the implementation, I don't think creating exceptions in I also implemented ReturnNotNone, because it felt minimal and similar enough to just get done. Couldn't find an issue to link the newsfragment to though so I just pointed it to this PR. codecov seems somewhat confused, but afaict everything is actually fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @polkapolka and @jakkdl for your work on this! I'm looking forward to using it myself 😁
@@ -0,0 +1 @@ | |||
Async tests will now fail, instead of warning+skipping, if you don't have any suitable plugin installed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Traditionally we have marked changelog entries that turned warnings into errors as breaking
, to stand out more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to know, feel free to rename the file :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in #12942.
No description provided.