-
Notifications
You must be signed in to change notification settings - Fork 621
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
assertFalse
has wrong name
#6166
Comments
I personally think |
There were also suggestions of renames like:
(I guess these are in similar direction) But they didn't get much attention from the community #3513 (comment) |
From the examples in other languages/frameworks listed in #2045 (comment), it looks like all of them except Python's unittest strictly mean "false" rather than "falsy". Tbh doesn't seem like there's much utility in having functions that only check one specific value, given that In any case, using "false" to mean "falsy" strikes me as confusing, especially given the precedent in other testing frameworks to include such strictly-equal-to-a-specific-value functions. Happy to close this issue if the chances of changing it are slim-to-none. |
Is your feature request related to a problem? Please describe.
Not sure what the prospects of changing this are given that
assert
is 1.x, butassertFalse
has the wrong name (should beassertFalsy
):Describe the solution you'd like
Maybe rename to
assertFalsy
and deprecateassertFalse
?Describe alternatives you've considered
Do nothing
The text was updated successfully, but these errors were encountered: