diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-07-30 20:36:33 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-07-30 20:36:33 +0000 |
commit | b78d3be51653f6241214f6354303bd261af1b426 (patch) | |
tree | a7d8c50ca8b9b48933199e4919fda7dd3b251bf2 /numpy/testing/numpytest.py | |
parent | 4b2252ca5153410475cf5a7a5ea4b4c07d428d41 (diff) | |
download | numpy-b78d3be51653f6241214f6354303bd261af1b426.tar.gz |
Delay import of shlex to reduce startup time.
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r-- | numpy/testing/numpytest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py index e1c3b5c0d..06229630a 100644 --- a/numpy/testing/numpytest.py +++ b/numpy/testing/numpytest.py @@ -3,7 +3,6 @@ import re import sys import imp import types -import shlex import unittest import traceback import warnings @@ -624,6 +623,10 @@ class NumpyTest: """ 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: |