Skip to content

Commit 7fdc9ee

Browse files
committed
Lint.
Shorten some lines. Original NumPy Commit: 01438a848b029b4fb3d3509c7fd313bc0588bd38
1 parent fdd0917 commit 7fdc9ee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

array_api_strict/tests/test_asarray.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ def test_dtype_identity():
3131
assert long_int_array is not int_array
3232
assert np.asarray(int_array, dtype='q') is not int_array
3333
assert np.asarray(long_int_array, dtype='q') is not long_int_array
34-
assert np.asarray(int_array, dtype='l') is not np.asarray(int_array, dtype='l')
35-
assert np.asarray(int_array, dtype='l').base is np.asarray(int_array, dtype='l').base
34+
assert long_int_array is not np.asarray(int_array, dtype='l')
35+
assert long_int_array.base is np.asarray(int_array, dtype='l').base
3636

3737
equivalent_requirement = np.dtype('i', metadata={'spam': True})
38-
annotated_int_array_alt = np.asarray(annotated_int_array, dtype=equivalent_requirement)
38+
annotated_int_array_alt = np.asarray(annotated_int_array,
39+
dtype=equivalent_requirement)
3940
# The descriptors are equivalent, but we have created
4041
# distinct dtype instances.
4142
assert unequal_type == equivalent_requirement

0 commit comments

Comments
 (0)