()
| 2065 | |
| 2066 | @pytest.mark.thread_unsafe(reason="checks global module & deprecated warnings") |
| 2067 | def 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") |
nothing calls this directly
no test coverage detected
searching dependent graphs…