##// END OF EJS Templates
Merge pull request #13248 from Kojoley/refactor-test_shim_warning...
Matthias Bussonnier -
r27002:fd60e064 merge
parent child Browse files
Show More
@@ -1,13 +1,10 b''
1 import pytest
1 2 import sys
2 import warnings
3 3
4 4 from IPython.utils.shimmodule import ShimWarning
5 5
6 6
7 7 def test_shim_warning():
8 8 sys.modules.pop('IPython.config', None)
9 with warnings.catch_warnings(record=True) as w:
10 warnings.simplefilter("always")
9 with pytest.warns(ShimWarning):
11 10 import IPython.config
12 assert len(w) == 1
13 assert issubclass(w[-1].category, ShimWarning)
General Comments 0
You need to be logged in to leave comments. Login now