obspy.core.util.testing.WarningsCapture

class WarningsCapture[source]

Bases: future.types.newobject.newobject

Try hard to capture all warnings.

Aims to be a reliable drop-in replacement for built-in warnings.catch_warnings() context manager.

Based on pytest’s _DeprecatedCallContext context manager.

Attributes

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

Public Methods

next

Private Methods

Warning

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

_warn
_warn_explicit

Special Methods

__enter__
__exit__
__format__ default object formatter
__getitem__
__len__
__long__
__native__ Hook for the future.utils.native() function
__new__
__nonzero__
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__ size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().
__unicode__