##// END OF EJS Templates
TST: Simplify `NamedInstanceClass`...
TST: Simplify `NamedInstanceClass` The `__getitem__`/`get_instance` methods are unused.

File last commit:

r27078:d71d4265
r27127:59cf48e4
Show More
test_shimmodule.py
14 lines | 302 B | text/x-python | PythonLexer
import pytest
import sys
from IPython.utils.shimmodule import ShimWarning
def test_shim_warning():
sys.modules.pop('IPython.config', None)
with pytest.warns(ShimWarning):
import IPython.config
import traitlets.config
assert IPython.config.Config is traitlets.config.Config