[Numpy-svn] r5799 - in trunk/numpy: core/tests fft/tests lib lib/tests ma/tests testing

numpy-svn@scip... numpy-svn@scip...
Tue Sep 9 12:48:54 CDT 2008


Author: alan.mcintyre
Date: 2008-09-09 12:48:47 -0500 (Tue, 09 Sep 2008)
New Revision: 5799

Modified:
   trunk/numpy/core/tests/test_regression.py
   trunk/numpy/core/tests/test_scalarmath.py
   trunk/numpy/core/tests/test_umath.py
   trunk/numpy/fft/tests/test_fftpack.py
   trunk/numpy/fft/tests/test_helper.py
   trunk/numpy/lib/arraysetops.py
   trunk/numpy/lib/tests/test__datasource.py
   trunk/numpy/lib/tests/test_function_base.py
   trunk/numpy/ma/tests/test_old_ma.py
   trunk/numpy/ma/tests/test_subclassing.py
   trunk/numpy/testing/utils.py
Log:
Removed unused imports.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2008-09-09 14:03:08 UTC (rev 5798)
+++ trunk/numpy/core/tests/test_regression.py	2008-09-09 17:48:47 UTC (rev 5799)
@@ -87,7 +87,6 @@
 
     def test_char_dump(self,level=rlevel):
         """Ticket #50"""
-        import tempfile
         f = StringIO()
         ca = np.char.array(np.arange(1000,1010),itemsize=4)
         ca.dump(f)

Modified: trunk/numpy/core/tests/test_scalarmath.py
===================================================================
--- trunk/numpy/core/tests/test_scalarmath.py	2008-09-09 14:03:08 UTC (rev 5798)
+++ trunk/numpy/core/tests/test_scalarmath.py	2008-09-09 17:48:47 UTC (rev 5799)
@@ -1,5 +1,4 @@
 from numpy.testing import *
-import numpy.core.umath as ncu
 import numpy as np
 
 types = [np.bool_, np.byte, np.ubyte, np.short, np.ushort, np.intc, np.uintc,
@@ -77,7 +76,6 @@
 
 class TestRepr(TestCase):
     def test_float_repr(self):
-        from numpy import nan, inf
         for t in [np.float32, np.float64, np.longdouble]:
             if t is np.longdouble: # skip it for now.
                 continue

Modified: trunk/numpy/core/tests/test_umath.py
===================================================================
--- trunk/numpy/core/tests/test_umath.py	2008-09-09 14:03:08 UTC (rev 5798)
+++ trunk/numpy/core/tests/test_umath.py	2008-09-09 17:48:47 UTC (rev 5799)
@@ -1,8 +1,6 @@
 from numpy.testing import *
 import numpy.core.umath as ncu
 import numpy as np
-import nose
-from numpy import inf, nan, pi
 
 class TestDivision(TestCase):
     def test_division_int(self):

Modified: trunk/numpy/fft/tests/test_fftpack.py
===================================================================
--- trunk/numpy/fft/tests/test_fftpack.py	2008-09-09 14:03:08 UTC (rev 5798)
+++ trunk/numpy/fft/tests/test_fftpack.py	2008-09-09 17:48:47 UTC (rev 5799)
@@ -1,4 +1,3 @@
-import sys
 from numpy.testing import *
 import numpy as np
 

Modified: trunk/numpy/fft/tests/test_helper.py
===================================================================
--- trunk/numpy/fft/tests/test_helper.py	2008-09-09 14:03:08 UTC (rev 5798)
+++ trunk/numpy/fft/tests/test_helper.py	2008-09-09 17:48:47 UTC (rev 5799)
@@ -3,7 +3,6 @@
 """ Test functions for fftpack.helper module
 """
 
-import sys
 from numpy.testing import *
 from numpy.fft import fftshift,ifftshift,fftfreq
 

Modified: trunk/numpy/lib/arraysetops.py
===================================================================
--- trunk/numpy/lib/arraysetops.py	2008-09-09 14:03:08 UTC (rev 5798)
+++ trunk/numpy/lib/arraysetops.py	2008-09-09 17:48:47 UTC (rev 5799)
@@ -35,7 +35,6 @@
 __all__ = ['ediff1d', 'unique1d', 'intersect1d', 'intersect1d_nu', 'setxor1d',
            'setmember1d', 'union1d', 'setdiff1d']
 
-import time
 import numpy as np
 
 def ediff1d(ary, to_end=None, to_begin=None):

Modified: trunk/numpy/lib/tests/test__datasource.py
===================================================================
--- trunk/numpy/lib/tests/test__datasource.py	2008-09-09 14:03:08 UTC (rev 5798)
+++ trunk/numpy/lib/tests/test__datasource.py	2008-09-09 17:48:47 UTC (rev 5799)
@@ -1,7 +1,4 @@
-
 import os
-import sys
-import struct
 from tempfile import mkdtemp, mkstemp, NamedTemporaryFile
 from shutil import rmtree
 from urlparse import urlparse

Modified: trunk/numpy/lib/tests/test_function_base.py
===================================================================
--- trunk/numpy/lib/tests/test_function_base.py	2008-09-09 14:03:08 UTC (rev 5798)
+++ trunk/numpy/lib/tests/test_function_base.py	2008-09-09 17:48:47 UTC (rev 5799)
@@ -1,4 +1,3 @@
-import sys
 import warnings
 
 from numpy.testing import *

Modified: trunk/numpy/ma/tests/test_old_ma.py
===================================================================
--- trunk/numpy/ma/tests/test_old_ma.py	2008-09-09 14:03:08 UTC (rev 5798)
+++ trunk/numpy/ma/tests/test_old_ma.py	2008-09-09 17:48:47 UTC (rev 5799)
@@ -1,5 +1,5 @@
 import numpy
-import types, time
+import types
 from numpy.ma import *
 from numpy.core.numerictypes import float32
 from numpy.ma.core import umath

Modified: trunk/numpy/ma/tests/test_subclassing.py
===================================================================
--- trunk/numpy/ma/tests/test_subclassing.py	2008-09-09 14:03:08 UTC (rev 5798)
+++ trunk/numpy/ma/tests/test_subclassing.py	2008-09-09 17:48:47 UTC (rev 5799)
@@ -11,8 +11,6 @@
 __date__     = '$Date: 2007-10-29 17:18:13 +0200 (Mon, 29 Oct 2007) $'
 
 import numpy as np
-import numpy.core.numeric as numeric
-
 from numpy.testing import *
 from numpy.ma.testutils import *
 from numpy.ma.core import *

Modified: trunk/numpy/testing/utils.py
===================================================================
--- trunk/numpy/testing/utils.py	2008-09-09 14:03:08 UTC (rev 5798)
+++ trunk/numpy/testing/utils.py	2008-09-09 17:48:47 UTC (rev 5799)
@@ -241,7 +241,6 @@
 def assert_array_compare(comparison, x, y, err_msg='', verbose=True,
                          header=''):
     from numpy.core import asarray, isnan, any
-    from numpy import isreal, iscomplex
     x = asarray(x)
     y = asarray(y)
 



More information about the Numpy-svn mailing list