[issue37262] Make unittest assertions staticmethods/classmethods

2019-06-13 Thread Pascal Chambon
Pascal Chambon added the comment: Indeed I missed this ticket, thanks -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37262] Make unittest assertions staticmethods/classmethods

2019-06-13 Thread Robert Collins
Robert Collins added the comment: I think this is strictly redundant with that other ticket and I'm going to close it. That said, they need access to self.failureException. https://docs.python.org/3/library/unittest.html#unittest.TestCase.failureException -- stage: -> resolved

[issue37262] Make unittest assertions staticmethods/classmethods

2019-06-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Library (Lib) -Tests nosy: +ezio.melotti, michael.foord, rbcollins versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue37262] Make unittest assertions staticmethods/classmethods

2019-06-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue19645 which seems to be a slightly related discussion -- nosy: +xtreak ___ Python tracker ___

[issue37262] Make unittest assertions staticmethods/classmethods

2019-06-13 Thread Pascal Chambon
New submission from Pascal Chambon : 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