test_shimmodule.py
14 lines
| 302 B
| text/x-python
|
PythonLexer
Nikita Kniazev
|
r26999 | import pytest | ||
Min RK
|
r21515 | import sys | ||
from IPython.utils.shimmodule import ShimWarning | ||||
Srinivas Reddy Thatiparthy
|
r23701 | |||
Min RK
|
r21515 | def test_shim_warning(): | ||
sys.modules.pop('IPython.config', None) | ||||
Nikita Kniazev
|
r26999 | with pytest.warns(ShimWarning): | ||
Min RK
|
r21515 | import IPython.config | ||
Nikita Kniazev
|
r27078 | |||
import traitlets.config | ||||
assert IPython.config.Config is traitlets.config.Config | ||||