This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pakal
Recipients pakal
Date 2019-06-13.07:15:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560410104.79.0.196722798693.issue37262@roundup.psfhosted.org>
In-reply-to
Content
Is there any reasons why assertXXX methods in TestCase are instance methods and not staticmethods/classmethods?

Since they (to my knowledge) don't need to access an instance dict, they could be turned into instance-less methods, and thus be usable from other testing frameworks (like pytest, for those who want to use all the power of fixtures and yet benefit from advanced assertions, like Django's TestCase's assertXXX).

Am I missing something here?
History
Date User Action Args
2019-06-13 07:15:04pakalsetrecipients: + pakal
2019-06-13 07:15:04pakalsetmessageid: <1560410104.79.0.196722798693.issue37262@roundup.psfhosted.org>
2019-06-13 07:15:04pakallinkissue37262 messages
2019-06-13 07:15:04pakalcreate