method
testing.suppress_warnings.
record
Append a new recording filter or apply it if the state is entered.
All warnings matching will be appended to the log attribute.
log
Warning class to filter
Regular expression matching the warning message.
Module to filter for. Note that the module (and its file) must match exactly and cannot be a submodule. This may make it unreliable for external modules.
A list which will be filled with all matched warnings.
Notes
When added within a context, filters are only added inside the context and will be forgotten when the context is exited.