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
Update :class:pytest.PytestUnhandledCoroutineWarning
to a deprecation; it will raise an error in pytest 8. [SQUASH]
#10012
Conversation
287a93f
to
a7be13b
Compare
@@ -55,7 +55,6 @@ class PytestRemovedIn8Warning(PytestDeprecationWarning): | |||
__module__ = "pytest" | |||
|
|||
|
|||
@final | |||
class PytestReturnNotNoneWarning(PytestDeprecationWarning): |
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.
@RonnyPfannschmidt requested that PytestReturnNotNoneWarning be a RemovedIn8Warning and I agree, but the @final
decorator on RemovedIn8Warning prevents that.
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.
Looks good, however I think this warrants a changelog entry?
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
pytest.PytestUnhandledCoroutineWarning
to a deprecation; it will raise an error in pytest 8.
@nicoddemus what do you think about making RemovedIn8Warning not-final? Ideally it would be sealed: mypyc/mypyc#846 rather than final |
I'm OK with making it not-final |
pytest.PytestUnhandledCoroutineWarning
to a deprecation; it will raise an error in pytest 8.pytest.PytestUnhandledCoroutineWarning
to a deprecation; it will raise an error in pytest 8. [SQUASH]
currently the PytestUnhandledCoroutineWarning are a regular PytestWarning. However really they are just a more important special case of PytestReturnNotNoneWarning
If the plan is to upbraid PytestReturnNotNoneWarning into a PytestReturnNotNoneError in pytest 8, we should turn both of these into an error at the same time.
See #9956 (comment)
And #7363