MCPcopy Create free account
hub / github.com/numpy/numpy / __exit__

Method __exit__

numpy/testing/_private/utils.py:2210–2216  ·  view source on GitHub ↗
(self, *exc_info)

Source from the content-addressed store, hash-verified

2208 return self
2209
2210 def __exit__(self, *exc_info):
2211 warnings.showwarning = self._orig_show
2212 warnings.filters = self._filters
2213 self._clear_registries()
2214 self._entered = False
2215 del self._orig_show
2216 del self._filters
2217
2218 def _showwarning(self, message, category, filename, lineno,
2219 *args, use_warnmsg=None, **kwargs):

Callers 1

__exit__Method · 0.45

Calls 1

_clear_registriesMethod · 0.95

Tested by

no test coverage detected