summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2020-08-11 15:53:55 +0200
committerBas van Beek <b.f.van.beek@vu.nl>2020-08-11 15:53:55 +0200
commit7127cdfb8553030ba317455c9f31fe4d7ed74e81 (patch)
tree77bfded8b13c9e14c5e32e5bdeaa979ad23f68b0 /numpy/lib/tests/test_function_base.py
parent7aced6e57253f6e10960ab33f05229a6f882b094 (diff)
downloadnumpy-7127cdfb8553030ba317455c9f31fe4d7ed74e81.tar.gz
ENH: Use elementwise comparisons with 0 rather than boolean casting
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index 89c1a2d9b..744034e01 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -1169,10 +1169,9 @@ class TestTrimZeros:
a = np.array([0, 0, 1, 0, 2, 3, 4, 0])
b = a.astype(float)
c = a.astype(complex)
- d = np.array([None, [], 1, False, 'b', 3.0, range(4), b''], dtype=object)
def values(self):
- attr_names = ('a', 'b', 'c', 'd')
+ attr_names = ('a', 'b', 'c')
return (getattr(self, name) for name in attr_names)
def test_basic(self):