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

Function test_clear_and_catch_warnings_inherit

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

Source from the content-addressed store, hash-verified

2065
2066@pytest.mark.thread_unsafe(reason="checks global module & deprecated warnings")
2067def test_clear_and_catch_warnings_inherit():
2068 # Test can subclass and add default modules
2069 my_mod = _get_fresh_mod()
2070 with my_cacw():
2071 warnings.simplefilter('ignore')
2072 warnings.warn('Some warning')
2073 assert_equal(my_mod.__warningregistry__, {})
2074
2075
2076@pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts")

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
_get_fresh_modFunction · 0.85
my_cacwClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…