summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorWarren Weckesser <warren.weckesser@gmail.com>2020-01-01 07:50:29 -0500
committerWarren Weckesser <warren.weckesser@gmail.com>2020-01-01 07:50:29 -0500
commitd690452646711f9091c73de471463e795d12acfc (patch)
tree7904b04ebf1e9fb0b91a90af4762e6f506f19014 /numpy/lib
parentbaa3786ef02cb8d56ed1c16a105b857e87adf29a (diff)
downloadnumpy-d690452646711f9091c73de471463e795d12acfc.tar.gz
MAINT: lib: Clean up in tests.
* Remove a few unused imports in several files.
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/tests/test_function_base.py1
-rw-r--r--numpy/lib/tests/test_recfunctions.py1
-rw-r--r--numpy/lib/tests/test_shape_base.py1
3 files changed, 0 insertions, 3 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index 9075ff538..f95e0a251 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -4,7 +4,6 @@ import operator
import warnings
import sys
import decimal
-import types
from fractions import Fraction
import pytest
diff --git a/numpy/lib/tests/test_recfunctions.py b/numpy/lib/tests/test_recfunctions.py
index fa5f4dec2..53229e31a 100644
--- a/numpy/lib/tests/test_recfunctions.py
+++ b/numpy/lib/tests/test_recfunctions.py
@@ -772,7 +772,6 @@ class TestJoinBy(object):
def test_join_subdtype(self):
# tests the bug in https://stackoverflow.com/q/44769632/102441
- from numpy.lib import recfunctions as rfn
foo = np.array([(1,)],
dtype=[('key', int)])
bar = np.array([(1, np.array([1,2,3]))],
diff --git a/numpy/lib/tests/test_shape_base.py b/numpy/lib/tests/test_shape_base.py
index be1604a75..ff9019e3d 100644
--- a/numpy/lib/tests/test_shape_base.py
+++ b/numpy/lib/tests/test_shape_base.py
@@ -1,7 +1,6 @@
from __future__ import division, absolute_import, print_function
import numpy as np
-import warnings
import functools
import sys
import pytest