summaryrefslogtreecommitdiff
path: root/numpy/testing/_private/utils.py
diff options
context:
space:
mode:
authorRoman Yurchak <rth.yurchak@pm.me>2018-12-06 20:05:08 +0100
committerCharles Harris <charlesr.harris@gmail.com>2018-12-06 11:05:08 -0800
commit45cef38cda80868355a920b5e94211dcf662ea07 (patch)
treee353794e418c2900e92c82e519e87f990605de60 /numpy/testing/_private/utils.py
parent8ffa2273ce739fe2b38b09f7f8aa37fde1591a18 (diff)
downloadnumpy-45cef38cda80868355a920b5e94211dcf662ea07.tar.gz
MAINT: Review F401,F841,F842 flake8 errors (unused variables and imports) (#12448)
* Review F401,F841,F842 flake8 errors (unused variables, imports) * Review comments * More tests in test_installed_npymath_ini * Review comments
Diffstat (limited to 'numpy/testing/_private/utils.py')
-rw-r--r--numpy/testing/_private/utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py
index 20a7dfd0b..55306e499 100644
--- a/numpy/testing/_private/utils.py
+++ b/numpy/testing/_private/utils.py
@@ -19,7 +19,7 @@ from warnings import WarningMessage
import pprint
from numpy.core import(
- bool_, float32, empty, arange, array_repr, ndarray, isnat, array)
+ float32, empty, arange, array_repr, ndarray, isnat, array)
from numpy.lib.utils import deprecate
if sys.version_info[0] >= 3:
@@ -687,7 +687,6 @@ def assert_array_compare(comparison, x, y, err_msg='', verbose=True,
equal_inf=True):
__tracebackhide__ = True # Hide traceback for py.test
from numpy.core import array, isnan, inf, bool_
- from numpy.core.fromnumeric import all as npall
x = array(x, copy=False, subok=True)
y = array(y, copy=False, subok=True)
@@ -946,7 +945,7 @@ def assert_array_almost_equal(x, y, decimal=6, err_msg='', verbose=True):
"""
__tracebackhide__ = True # Hide traceback for py.test
- from numpy.core import around, number, float_, result_type, array
+ from numpy.core import number, float_, result_type, array
from numpy.core.numerictypes import issubdtype
from numpy.core.fromnumeric import any as npany