test_deepreload.py
24 lines
| 789 B
| text/x-python
|
PythonLexer
|
r6534 | # -*- coding: utf-8 -*- | ||
|
r6533 | """Test suite for the deepreload module.""" | ||
|
r6534 | #----------------------------------------------------------------------------- | ||
# Imports | ||||
#----------------------------------------------------------------------------- | ||||
|
r6533 | from IPython.testing import decorators as dec | ||
from IPython.lib.deepreload import reload as dreload | ||||
|
r6534 | #----------------------------------------------------------------------------- | ||
# Test functions begin | ||||
#----------------------------------------------------------------------------- | ||||
|
r6533 | @dec.skipif_not_numpy | ||
def test_deepreload_numpy(): | ||||
import numpy | ||||
exclude = [ | ||||
# Standard exclusions: | ||||
'sys', 'os.path', '__builtin__', '__main__', | ||||
# Test-related exclusions: | ||||
'unittest', | ||||
] | ||||
dreload(numpy, exclude=exclude) | ||||