Message139138
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.) |
|
Date |
User |
Action |
Args |
2011-06-26 02:15:53 | r.david.murray | set | recipients:
+ r.david.murray, rhettinger, terry.reedy, michael.foord, branker |
2011-06-26 02:15:53 | r.david.murray | set | messageid: <1309054553.08.0.833246767659.issue12376@psf.upfronthosting.co.za> |
2011-06-26 02:15:52 | r.david.murray | link | issue12376 messages |
2011-06-26 02:15:52 | r.david.murray | create | |
|