TestCase.flushWarnings cannot identify warnings which affect decorated functions
[email protected] Wed, 02 Dec 2009 18:51:09 -0000
| Newsgroups | gmane.comp.python.twisted.bugs |
|---|---|
| Message-ID | <[email protected]> |
New submission from exarkun <[email protected]>: For example, consider a function decorated with `inlineCallbacks`. Passing such a function to `flushWarnings` results in it flushing all the warnings which apply to the nested `unwindGenerator` function defined inside `inlineCallbacks`. It would be nice if `flushWarnings` could find the proper function. Perhaps this could be done by looking for an attribute on the decorated function which refers to the original. I'm not sure what would happen if two layers of decoration are applied, though. ---------- Type : enhancement Component: trial Keywords : Priority : normal Nosy : ---------- http://twistedmatrix.com/trac/ticket/4144