[Scipy-svn] r3152 - trunk/Lib/ndimage/tests

scipy-svn@scip... scipy-svn@scip...
Mon Jul 9 08:59:55 CDT 2007


Author: chanley
Date: 2007-07-09 08:59:52 -0500 (Mon, 09 Jul 2007)
New Revision: 3152

Modified:
   trunk/Lib/ndimage/tests/test_ndimage.py
Log:
Modified tests to import ndimage if module installed outside of scipy.

Modified: trunk/Lib/ndimage/tests/test_ndimage.py
===================================================================
--- trunk/Lib/ndimage/tests/test_ndimage.py	2007-07-09 12:39:18 UTC (rev 3151)
+++ trunk/Lib/ndimage/tests/test_ndimage.py	2007-07-09 13:59:52 UTC (rev 3152)
@@ -35,7 +35,11 @@
 from numpy import fft
 from numpy.testing import *
 set_package_path()
-import scipy.ndimage as ndimage
+try:
+    import scipy.ndimage as ndimage
+except:
+    import ndimage
+
 restore_path()
 #import numarray.numinclude as numinclude
 



More information about the Scipy-svn mailing list