summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests
diff options
context:
space:
mode:
authorM. Eric Irrgang <ericirrgang@gmail.com>2022-07-17 10:55:59 -0500
committerM. Eric Irrgang <ericirrgang@gmail.com>2022-07-17 10:55:59 -0500
commit01438a848b029b4fb3d3509c7fd313bc0588bd38 (patch)
treebe31857e939e4b2ded2fbedb62aa55cd5573db7f /numpy/array_api/tests
parente286f461b54c43e2a16b3f6fc6d829936ea28c27 (diff)
downloadnumpy-01438a848b029b4fb3d3509c7fd313bc0588bd38.tar.gz
Lint.
Shorten some lines.
Diffstat (limited to 'numpy/array_api/tests')
-rw-r--r--numpy/array_api/tests/test_asarray.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/array_api/tests/test_asarray.py b/numpy/array_api/tests/test_asarray.py
index fdcc77506..4a9dd77a0 100644
--- a/numpy/array_api/tests/test_asarray.py
+++ b/numpy/array_api/tests/test_asarray.py
@@ -31,11 +31,12 @@ def test_dtype_identity():
assert long_int_array is not int_array
assert np.asarray(int_array, dtype='q') is not int_array
assert np.asarray(long_int_array, dtype='q') is not long_int_array
- assert np.asarray(int_array, dtype='l') is not np.asarray(int_array, dtype='l')
- assert np.asarray(int_array, dtype='l').base is np.asarray(int_array, dtype='l').base
+ assert long_int_array is not np.asarray(int_array, dtype='l')
+ assert long_int_array.base is np.asarray(int_array, dtype='l').base
equivalent_requirement = np.dtype('i', metadata={'spam': True})
- annotated_int_array_alt = np.asarray(annotated_int_array, dtype=equivalent_requirement)
+ annotated_int_array_alt = np.asarray(annotated_int_array,
+ dtype=equivalent_requirement)
# The descriptors are equivalent, but we have created
# distinct dtype instances.
assert unequal_type == equivalent_requirement