Author jonash
Recipients Tim.Graham, ezio.melotti, jonash, michael.foord, pitrou, rbcollins, vstinner
Date 2017-11-27.16:12:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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?
Date User Action Args
2017-11-27 16:12:54jonashsetrecipients: + jonash, pitrou, vstinner, rbcollins, ezio.melotti, michael.foord, Tim.Graham
2017-11-27 16:12:54jonashsetmessageid: <>
2017-11-27 16:12:53jonashlinkissue32071 messages
2017-11-27 16:12:53jonashcreate