obspy.core.util.base.CatchAndAssertWarnings

class CatchAndAssertWarnings(clear=None, expected=None, show_all=True, **kwargs)[source]

Bases: warnings.catch_warnings

Attributes

__dict__
__doc__
__module__ str(object=’‘) -> str
__weakref__ list of weak references to the object (if defined)

Public Methods

clear_warning_registry Clear warning registry of specified module

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

_assert_warnings Checks for expected warnings and raises an AssertionError if anyone of

Special Methods

__dir__ default dir() implementation
__enter__
__exit__
__format__ default object formatter
__init__
type clear:list of str
__new__ Create and return a new object.
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__repr__
__sizeof__ size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().