diff options
-rw-r--r-- | numpy/core/tests/test_regression.py | 1 | ||||
-rw-r--r-- | numpy/core/tests/test_scalarmath.py | 2 | ||||
-rw-r--r-- | numpy/core/tests/test_umath.py | 2 | ||||
-rw-r--r-- | numpy/fft/tests/test_fftpack.py | 1 | ||||
-rw-r--r-- | numpy/fft/tests/test_helper.py | 1 | ||||
-rw-r--r-- | numpy/lib/arraysetops.py | 1 | ||||
-rw-r--r-- | numpy/lib/tests/test__datasource.py | 3 | ||||
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 1 | ||||
-rw-r--r-- | numpy/ma/tests/test_old_ma.py | 2 | ||||
-rw-r--r-- | numpy/ma/tests/test_subclassing.py | 2 | ||||
-rw-r--r-- | numpy/testing/utils.py | 1 |
11 files changed, 1 insertions, 16 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index 7fcf7f85a..c6ba51b3e 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -87,7 +87,6 @@ class TestRegression(TestCase): 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) diff --git a/numpy/core/tests/test_scalarmath.py b/numpy/core/tests/test_scalarmath.py index bb1ada66b..6001f6b72 100644 --- a/numpy/core/tests/test_scalarmath.py +++ b/numpy/core/tests/test_scalarmath.py @@ -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 TestConversion(TestCase): 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 diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py index 1486a15e7..0e1c8bf88 100644 --- a/numpy/core/tests/test_umath.py +++ b/numpy/core/tests/test_umath.py @@ -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): diff --git a/numpy/fft/tests/test_fftpack.py b/numpy/fft/tests/test_fftpack.py index da15b8114..1095de4bc 100644 --- a/numpy/fft/tests/test_fftpack.py +++ b/numpy/fft/tests/test_fftpack.py @@ -1,4 +1,3 @@ -import sys from numpy.testing import * import numpy as np diff --git a/numpy/fft/tests/test_helper.py b/numpy/fft/tests/test_helper.py index 13006e2c0..f757b6032 100644 --- a/numpy/fft/tests/test_helper.py +++ b/numpy/fft/tests/test_helper.py @@ -3,7 +3,6 @@ """ Test functions for fftpack.helper module """ -import sys from numpy.testing import * from numpy.fft import fftshift,ifftshift,fftfreq diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 19efbc452..270927321 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -35,7 +35,6 @@ last revision: 07.01.2007 __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): diff --git a/numpy/lib/tests/test__datasource.py b/numpy/lib/tests/test__datasource.py index 95a72f76a..90a137498 100644 --- a/numpy/lib/tests/test__datasource.py +++ b/numpy/lib/tests/test__datasource.py @@ -1,7 +1,4 @@ - import os -import sys -import struct from tempfile import mkdtemp, mkstemp, NamedTemporaryFile from shutil import rmtree from urlparse import urlparse diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 183696c58..8f80920cd 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1,4 +1,3 @@ -import sys import warnings from numpy.testing import * diff --git a/numpy/ma/tests/test_old_ma.py b/numpy/ma/tests/test_old_ma.py index 5e881e736..4887a228c 100644 --- a/numpy/ma/tests/test_old_ma.py +++ b/numpy/ma/tests/test_old_ma.py @@ -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 diff --git a/numpy/ma/tests/test_subclassing.py b/numpy/ma/tests/test_subclassing.py index eff7b268d..2c8d74c57 100644 --- a/numpy/ma/tests/test_subclassing.py +++ b/numpy/ma/tests/test_subclassing.py @@ -11,8 +11,6 @@ __revision__ = "$Revision: 3473 $" __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 * diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 6f3eb15c7..35373734d 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -241,7 +241,6 @@ def assert_approx_equal(actual,desired,significant=7,err_msg='',verbose=True): 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) |