[Numpy-svn] r5574 - trunk/numpy/testing

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Jul 30 16:36:37 EDT 2008


Author: alan.mcintyre
Date: 2008-07-30 15:36:33 -0500 (Wed, 30 Jul 2008)
New Revision: 5574

Modified:
   trunk/numpy/testing/numpytest.py
Log:
Delay import of shlex to reduce startup time.


Modified: trunk/numpy/testing/numpytest.py
===================================================================
--- trunk/numpy/testing/numpytest.py	2008-07-30 20:27:23 UTC (rev 5573)
+++ trunk/numpy/testing/numpytest.py	2008-07-30 20:36:33 UTC (rev 5574)
@@ -3,7 +3,6 @@
 import sys
 import imp
 import types
-import shlex
 import unittest
 import traceback
 import warnings
@@ -624,6 +623,10 @@
         """ Run Numpy module test suite with level and verbosity
         taken from sys.argv. Requires optparse module.
         """
+        
+        # delayed import of shlex to reduce startup time
+        import shlex
+
         try:
             from optparse import OptionParser
         except ImportError:




More information about the Numpy-svn mailing list