[New-bugs-announce] [issue6072] unittest.TestCase._result is very likely to collide (and break) with application-defined TestCase attributes

Jean-Paul Calderone report at bugs.python.org
Wed May 20 19:56:34 CEST 2009


New submission from Jean-Paul Calderone <exarkun at divmod.com>:

r72219 introduced an `_result´ attribute to `TestCase´.  As `TestCase´
is designed specifically with the intent that applications should
subclass it -- and frequently -- I would suggest that the attribute be
given a name less likely to collide with a name chosen by application
code.  Given the huge quantity of `TestCase´ subclasses, it will likely
be a great time saver to address the collision in CPython rather than in
each application.

----------
components: Library (Lib)
messages: 88124
nosy: exarkun
severity: normal
status: open
title: unittest.TestCase._result is very likely to collide (and break) with application-defined TestCase attributes
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6072>
_______________________________________


More information about the New-bugs-announce mailing list