Call f with args positional arguments and kwargs keyword arguments and collect all warnings which are emitted as a result in a list.

ParametersobserveWarningA callable which will be invoked with a _Warning instance each time a warning is emitted.
ReturnsThe return value of f(*args, **kwargs).
Function showWarning Undocumented
def showWarning(message, category, filename, lineno, file=None, line=None): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.