From 6525f3bb574917afd42ceef44dd41c882a2f2d3f 2015-07-27 16:22:48 From: Thomas Kluyver Date: 2015-07-27 16:22:48 Subject: [PATCH] Exclude some more modules from deepreload test Need to find a way to exclude all stdlib modules. --- diff --git a/IPython/lib/tests/test_deepreload.py b/IPython/lib/tests/test_deepreload.py index b59e741..92195bc 100644 --- a/IPython/lib/tests/test_deepreload.py +++ b/IPython/lib/tests/test_deepreload.py @@ -23,12 +23,15 @@ from IPython.lib.deepreload import reload as dreload def test_deepreload_numpy(): "Test that NumPy can be deep reloaded." import numpy + # TODO: Find a way to exclude all standard library modules from reloading. exclude = [ # Standard exclusions: 'sys', 'os.path', builtin_mod_name, '__main__', # Test-related exclusions: 'unittest', 'UserDict', '_collections_abc', 'tokenize', 'collections', 'collections.abc', + 'importlib', 'importlib._bootstrap', '_frozen_importlib', + '_frozen_importlib_external', ] dreload(numpy, exclude=exclude)