diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2020-08-11 15:53:55 +0200 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2020-08-11 15:53:55 +0200 |
commit | 7127cdfb8553030ba317455c9f31fe4d7ed74e81 (patch) | |
tree | 77bfded8b13c9e14c5e32e5bdeaa979ad23f68b0 /numpy/lib/tests | |
parent | 7aced6e57253f6e10960ab33f05229a6f882b094 (diff) | |
download | numpy-7127cdfb8553030ba317455c9f31fe4d7ed74e81.tar.gz |
ENH: Use elementwise comparisons with 0 rather than boolean casting
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 3 |
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): |