New submission from Martin v. Löwis <mar...@v.loewis.de>:

In Python 3.2, when inheriting from TestSuite, it is no longer possible to 
override __call__ (e.g. to introduce a TestSuite setUp and tearDown).
The __call__ method will not be called anymore.

Instead, if the object has a _wrapped_run defined (which it will, since it 
inherits from TestSuite), then this is called instead. Overriding _wrapped_run 
is a work-around, however, this being a private method, overriding it is 
probably not a good idea.

----------
assignee: michael.foord
messages: 117192
nosy: loewis, michael.foord
priority: normal
severity: normal
status: open
title: Wrapped TestSuite subclass does not get __call__ executed
versions: Python 3.2

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

Reply via email to