Remove stored warnings from the list of captured warnings and return them.

ParametersoffendingFunctionsIf None, all warnings issued during the currently running test will be flushed. Otherwise, only warnings which point to a function included in this list will be flushed. All warnings include a filename and source line number; if these parts of a warning point to a source line which is part of a function, then the warning points to that function. (type: None or list of functions or methods.)
ReturnsA list, each element of which is a dict giving information about one warning which was flushed by this call. The keys of each dict are:
  • 'message': The string which was passed as the message parameter to warnings.warn.
  • 'category': The warning subclass which was passed as the category parameter to warnings.warn.
  • 'filename': The name of the file containing the definition of the code object which was stacklevel frames above the call to warnings.warn, where stacklevel is the value of the stacklevel parameter passed to warnings.warn.
  • 'lineno': The source line associated with the active instruction of the code object object which was stacklevel frames above the call to warnings.warn, where stacklevel is the value of the stacklevel parameter passed to warnings.warn.
RaisesValueErrorIf offendingFunctions is not None and includes an object which is not a types.FunctionType or types.MethodType instance.
API Documentation for Twisted, generated by pydoctor at 2017-09-23 19:45:03.