Lines Matching full:warnings
1 """Python part of the warnings subsystem."""
26 # warnings get lost
104 # warnings.showwarning() was replaced
106 raise TypeError("warnings.showwarning() must be set to a "
125 # warnings.formatwarning() was replaced
132 """Insert an entry into the list of warnings filters (at the front).
139 'lineno' -- an integer line number, 0 matches all warnings
166 """Insert a simple entry into the list of warnings filters (at the front).
172 'lineno' -- an integer line number, 0 matches all warnings
391 "Unrecognized action (%r) in warnings.filters:\n %s" %
422 """A context manager that copies and restores the warnings filter upon
425 The 'record' argument specifies whether warnings should be captured by a
426 custom implementation of warnings.showwarning() and be appended to a list
432 named 'warnings' and imported under that name. This argument is only useful
433 when testing the warnings module itself.
436 to warnings.simplefilter() as if it were called immediately on entering the
442 """Specify whether to record warnings and if an alternative module
443 should be used other than sys.modules['warnings'].
450 self._module = sys.modules['warnings'] if module is None else module
461 if self._module is not sys.modules['warnings']: