-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Misleading DeprecationWarning
in unittest
: It is deprecated to return a value!=None
#97837
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
Labels
type-bug
An unexpected behavior, bug, or error
Comments
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Oct 4, 2022
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Oct 4, 2022
orsenthil
pushed a commit
that referenced
this issue
Oct 5, 2022
orsenthil
pushed a commit
that referenced
this issue
Oct 5, 2022
…-97838) (cherry picked from commit c3648f4) Co-authored-by: Nikita Sobolev <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Oct 5, 2022
…honGH-97838) (cherry picked from commit c3648f4) Co-authored-by: Nikita Sobolev <[email protected]>
miss-islington
added a commit
that referenced
this issue
Oct 5, 2022
mpage
pushed a commit
to mpage/cpython
that referenced
this issue
Oct 11, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In python
!=
andis not
are two different things.Right now the deprecation warning says
!=
, let's see if that's true:It still raises this:
I believe that this is misleading. The proper message should say:
It is deprecated to return a value that is not None from a test case
I will send a PR with the fix.
The text was updated successfully, but these errors were encountered: