MCPcopy Index your code
hub / github.com/numpy/numpy / _get_fresh_mod

Function _get_fresh_mod

numpy/testing/tests/test_utils.py:1761–1770  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1759
1760
1761def _get_fresh_mod():
1762 # Get this module, with warning registry empty
1763 my_mod = sys.modules[__name__]
1764 try:
1765 my_mod.__warningregistry__.clear()
1766 except AttributeError:
1767 # will not have a __warningregistry__ unless warning has been
1768 # raised in the module at some point
1769 pass
1770 return my_mod
1771
1772
1773@pytest.mark.thread_unsafe(reason="checks global module & deprecated warnings")

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…