twisted.trial._synctest._collectWarnings(observeWarning, f, *args, **kwargs)
function documentationtwisted.trial._synctest
View Source
Call f
with args
positional arguments and kwargs
keyword arguments and collect all warnings which are emitted as a result in a list.
Parameters | observeWarning | A callable which will be invoked with a _Warning instance each time a warning is emitted. |
Returns | The return value of f(*args, **kwargs) . |
Function | showWarning | Undocumented |