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
Misleading DeprecationWarning in unittest: It is deprecated to return a value!=None
#97837
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
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 <mail@sobolevn.me>
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
sobolevn commentedOct 4, 2022
In python
!=andis notare 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 caseI will send a PR with the fix.
The text was updated successfully, but these errors were encountered: