New submission from Ben Ranker <bran...@emory.edu>:

TextTestResult.__init__(...) calls super(TextTestResult, self).__init__() with 
no args. If a custom TextTestResult descendant has a complex inheritance 
hierarchy that puts another class between TextTestResult and TestResult in the 
__mro__, then that class doesn't receive the common stream, descriptions, and 
verbosity args. If it needs them to function then the __init__ chain explodes.

See attached breakunit.py for an example of this.

----------
components: Library (Lib)
files: breakunit.py
messages: 138744
nosy: branker
priority: normal
severity: normal
status: open
title: unittest.TextTestResult.__init__ breaks under complex __mro__
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file22418/breakunit.py

_______________________________________
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