Twisted's Failure fake '_Frame' object lacks f_locals
|Reported by:||sidnei||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 5 years ago by alanfranzoni
- Keywords review added
- Owner glyph deleted
- Type changed from defect to enhancement
Changed 5 years ago by alanfranzoni
comment:5 Changed 5 years ago by exarkun
- Branch branches/fakeframe-f_locals-4045 deleted
- Keywords review removed
- Owner set to exarkun
- Status changed from new to assigned
comment:6 Changed 5 years ago by exarkun
- Resolution set to fixed
- Status changed from assigned to closed