Permalink
Browse files

Add deepreload unit test.

Thanks to Fernando for the suggestion and starting code.
  • Loading branch information...
1 parent 47c768c commit b0f53e41bdf7b84d16ea68e4bf52c184ec7e5009 @bfroehle committed Apr 17, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 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)

0 comments on commit b0f53e4

Please sign in to comment.