Author r.david.murray
Recipients branker, michael.foord, r.david.murray, rhettinger, terry.reedy
Date 2011-06-26.02:15:52
SpamBayes Score 3.3898e-08
Marked as misclassified No
Message-id <1309054553.08.0.833246767659.issue12376@psf.upfronthosting.co.za>
In-reply-to
Content
I think we'll have to wait for Micheal to double check, but it looks to me like there is a bug in unittest.TextTestResult.  TestResult's init expects the three arguments the OP is talking about, but defaults them to None.  TextTestResult accepts those three arguments in its init with no defaults, but does not pass them to the base class in the super call.  If this is intentional, I would say that it needs to be documented, since it is not obvious why it would be done that way, since it does, in fact, break the "cooperating classes" model required to use super correctly.

(As an aside, I was quite surprised to find TextTestResult in the runner.py file rather than the result.py file within the unittest package.)
History
Date User Action Args
2011-06-26 02:15:53r.david.murraysetrecipients: + r.david.murray, rhettinger, terry.reedy, michael.foord, branker
2011-06-26 02:15:53r.david.murraysetmessageid: <1309054553.08.0.833246767659.issue12376@psf.upfronthosting.co.za>
2011-06-26 02:15:52r.david.murraylinkissue12376 messages
2011-06-26 02:15:52r.david.murraycreate