[Scipy-svn] r3850 - trunk/scipy/misc/tests

scipy-svn@scip... scipy-svn@scip...
Fri Jan 18 18:54:53 CST 2008


Author: matthew.brett@gmail.com
Date: 2008-01-18 18:54:50 -0600 (Fri, 18 Jan 2008)
New Revision: 3850

Modified:
   trunk/scipy/misc/tests/test_pilutil.py
Log:
Fix import error for PIL tests when PIL not present

Modified: trunk/scipy/misc/tests/test_pilutil.py
===================================================================
--- trunk/scipy/misc/tests/test_pilutil.py	2008-01-18 23:48:52 UTC (rev 3849)
+++ trunk/scipy/misc/tests/test_pilutil.py	2008-01-19 00:54:50 UTC (rev 3850)
@@ -10,10 +10,9 @@
     _have_PIL = False
 else:
     _have_PIL = True
+    import scipy.misc.pilutil as pilutil
 TestCase.__test__ = _have_PIL
 
-import scipy.misc.pilutil as pilutil
-
 datapath = os.path.dirname(__file__)
 
 class TestPILUtil(TestCase):



More information about the Scipy-svn mailing list