You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unittest assert helper methods have incorrect signature in docs #79857
I think this is a bug as seen from typeshed python/typeshed#2724. But I will defer it to the maintainer to take a call on the same given there was a discussion in the past.
Removing versions that are on security fix only mode. I am changing the subject. Feel free to reword/revert.
Activity
ghost commentedon Jan 7, 2019
I think some functions of
class TestCaseare not documented correctly in the docs. For example in https://docs.python.org/3.5/library/unittest.html and also https://docs.python.org/3.6/library/unittest.html and https://docs.python.org/3.7/library/unittest.html.Some of the functions which are not documented correctly:
assertListEqual
assertSetEqual
assertDictEqual
assertIsNone
And many other functions.
You can see some more details on python/typeshed#2716.
ghost commentedon Jan 7, 2019
I think the main problem is where it's documented "first, second" while the real argument names are different.
I think maybe https://docs.python.org/2.7/library/unittest.html is also affected in functions such as:
tirkarthi commentedon Jan 7, 2019
Thanks for the report. Looking at git history it seems there were some changes done in bpo-10573 to use (actual, expected) for consistency and later changed to use (first, second) in the same issue at msg126911. Discussion for the issue : https://mail.python.org/pipermail/python-dev/2010-December/106875.html
I think this is a bug as seen from typeshed python/typeshed#2724. But I will defer it to the maintainer to take a call on the same given there was a discussion in the past.
Removing versions that are on security fix only mode. I am changing the subject. Feel free to reword/revert.
[-]class TestCase: docs are not correct[/-][+]unittest assert helper methods have incorrect signature in docs[/+]