()
| 5 | |
| 6 | |
| 7 | def test_shim_warning(): |
| 8 | sys.modules.pop('IPython.config', None) |
| 9 | with warnings.catch_warnings(record=True) as w: |
| 10 | warnings.simplefilter("always") |
| 11 | import IPython.config |
| 12 | assert len(w) == 1 |
| 13 | assert issubclass(w[-1].category, ShimWarning) |