##// END OF EJS Templates
MyTempImporter: implement modern interface
MyTempImporter: implement modern interface

File last commit:

r26999:27a33628
r27077:579c9f2a
Show More
test_shimmodule.py
10 lines | 212 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