From b0f53e41bdf7b84d16ea68e4bf52c184ec7e5009 2012-04-17 17:50:23 From: Bradley M. Froehle Date: 2012-04-17 17:50:23 Subject: [PATCH] Add deepreload unit test. Thanks to Fernando for the suggestion and starting code. --- diff --git a/IPython/lib/tests/test_deepreload.py b/IPython/lib/tests/test_deepreload.py new file mode 100644 index 0000000..af2e444 --- /dev/null +++ b/IPython/lib/tests/test_deepreload.py @@ -0,0 +1,15 @@ +"""Test suite for the deepreload module.""" + +from IPython.testing import decorators as dec +from IPython.lib.deepreload import reload as dreload + +@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)