##// END OF EJS Templates
Exclude some more modules from deepreload test...
Thomas Kluyver -
Show More
@@ -23,12 +23,15 b' from IPython.lib.deepreload import reload as dreload'
23 def test_deepreload_numpy():
23 def test_deepreload_numpy():
24 "Test that NumPy can be deep reloaded."
24 "Test that NumPy can be deep reloaded."
25 import numpy
25 import numpy
26 # TODO: Find a way to exclude all standard library modules from reloading.
26 exclude = [
27 exclude = [
27 # Standard exclusions:
28 # Standard exclusions:
28 'sys', 'os.path', builtin_mod_name, '__main__',
29 'sys', 'os.path', builtin_mod_name, '__main__',
29 # Test-related exclusions:
30 # Test-related exclusions:
30 'unittest', 'UserDict', '_collections_abc', 'tokenize',
31 'unittest', 'UserDict', '_collections_abc', 'tokenize',
31 'collections', 'collections.abc',
32 'collections', 'collections.abc',
33 'importlib', 'importlib._bootstrap', '_frozen_importlib',
34 '_frozen_importlib_external',
32 ]
35 ]
33
36
34 dreload(numpy, exclude=exclude)
37 dreload(numpy, exclude=exclude)
General Comments 0
You need to be logged in to leave comments. Login now