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

Method __exit__

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

Source from the content-addressed store, hash-verified

2506 return self
2507
2508 def __exit__(self, *exc_info):
2509 warnings.showwarning = self._orig_show
2510 self._catch_warnings.__exit__(*exc_info)
2511 self._clear_registries()
2512 self._entered = False
2513 del self._orig_show
2514 del self._catch_warnings
2515
2516 def _showwarning(self, message, category, filename, lineno,
2517 *args, use_warnmsg=None, **kwargs):

Callers 1

__exit__Method · 0.45

Calls 1

_clear_registriesMethod · 0.95

Tested by

no test coverage detected