()
| 1546 | |
| 1547 | |
| 1548 | def test_clear_and_catch_warnings_inherit(): |
| 1549 | # Test can subclass and add default modules |
| 1550 | my_mod = _get_fresh_mod() |
| 1551 | with my_cacw(): |
| 1552 | warnings.simplefilter('ignore') |
| 1553 | warnings.warn('Some warning') |
| 1554 | assert_equal(my_mod.__warningregistry__, {}) |
| 1555 | |
| 1556 | |
| 1557 | @pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts") |
nothing calls this directly
no test coverage detected