Twisted's Failure fake '_Frame' object lacks f_locals
|Reported by:||Sidnei da Silva||Owned by:|
Upon updating Twisted and zope.testing on a known Zope 3-based project, a new failure showed up on a test that was exercising the behavior of trial-based unittests as run by zope.testing's testrunner.
Turns out that a failure wasn't properly being reported due to zope.testing's custom format_traceback function trying to access the 'f_locals' attribute of a frame object (twisted.python.failure._Frame) from the handed over traceback object (an instance of twisted.python.failure._Traceback).
Of course the code from zope.testing is brittle enough to fall over on its back due to this missing attribute, but there's no apparent reason for Twisted's fake Frame object not provide the said 'f_locals' attribute other than perhaps memory issues (http://bugs.python.org/issue6116).
Change History (8)
comment:1 Changed 7 years ago by
|Type:||defect → enhancement|
comment:5 Changed 7 years ago by
|Owner:||set to Jean-Paul Calderone|
|Status:||new → assigned|