#4144 enhancement new
TestCase.flushWarnings cannot identify warnings which affect decorated functions
|Reported by:||exarkun||Owned by:|
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.