File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,12 @@ def test_dtype_identity():
31
31
assert long_int_array is not int_array
32
32
assert np .asarray (int_array , dtype = 'q' ) is not int_array
33
33
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
36
36
37
37
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 )
39
40
# The descriptors are equivalent, but we have created
40
41
# distinct dtype instances.
41
42
assert unequal_type == equivalent_requirement
You can’t perform that action at this time.
0 commit comments