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
To document "assertTrue" in unittest #46502
Comments
Python 2.4 and 2.5 unittest includes a "assertTrue" method undocumented. It is the same method as "assert_" and "failUnless", but the name seems |
I prefer that this remain undocumented. The published API is already |
I agree with Raymond. Having three names for a function is even more Also, I can't see wha'ts clearer in assertTrue in comparison with assert_. |
I could be convinced either way here, and Georg & Raymond always have My personal inclination would probably be to add the documentation for (I think Fred Drake put together the documentation originally; I don't -Steve |
I noted the issue while working in bsddb3 module. If failed in python2.3 Since "assertTrue" use is "in the wild", being undocumented is a I won't insist, in any case :-) |
FWIW, grepping through Lib/test reveals the following statistics: assertFalse: 83 Not having assertTrue/assertFalse methods in the Library Reference does I would say it should be documented. After all it would only take a two (I agree with OP that assertTrue is clearer than assert_ . Although I |
+1 for applying Alexander's patch, then; I'll leave the decision to a |
Just to make the story complete, it should be mentioned that ------------------------------------------------------------------------
|
Okay, I give in :) Committed as r61329. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: