R. David Murray <rdmur...@bitdance.com> added the comment:

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.)

----------
nosy: +r.david.murray

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12376>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to