Jonas H. <jo...@lophus.org> added the comment: Ah, the problem isn't that it's running getattr() on test methods, but that it runs getattr() on all methods.
Former code: attrname.startswith(prefix) and \ callable(getattr(testCaseClass, attrname)) New code: testFunc = getattr(testCaseClass, attrname) isTestMethod = attrname.startswith(self.testMethodPrefix) and callable(testFunc) This is trivial to fix. @Core devs: Should I revert to original behaviour with the order of the prefix check and the getattr() call, and add a regression test that guarantees this behaviour? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32071> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com