MCPcopy Create free account
hub / github.com/ipython/ipython / test_shim_warning

Function test_shim_warning

IPython/utils/tests/test_shimmodule.py:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def 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)

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected