Skip to content

Commit 653921d

Browse files
committed
test astype for all_dtypes
1 parent 038ae16 commit 653921d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

array_api_tests/test_data_type_functions.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ def non_complex_dtypes():
1919
return xps.boolean_dtypes() | hh.real_dtypes
2020

2121

22-
def numeric_dtypes():
23-
return xps.boolean_dtypes() | hh.real_dtypes | hh.complex_dtypes
24-
25-
2622
def float32(n: Union[int, float]) -> float:
2723
return struct.unpack("!f", struct.pack("!f", float(n)))[0]
2824

@@ -32,8 +28,8 @@ def _float_match_complex(complex_dtype):
3228

3329

3430
@given(
35-
x_dtype=numeric_dtypes(),
36-
dtype=numeric_dtypes(),
31+
x_dtype=hh.all_dtypes,
32+
dtype=hh.all_dtypes,
3733
kw=hh.kwargs(copy=st.booleans()),
3834
data=st.data(),
3935
)

0 commit comments

Comments
 (0)