We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e473c80 commit 5c50ff0Copy full SHA for 5c50ff0
1 file changed
array_api_tests/test_data_type_functions.py
@@ -215,12 +215,7 @@ def test_finfo_dtype(dtype):
215
try:
216
out = xp.finfo(dtype)
217
218
- if dtype == xp.complex64:
219
- assert out.dtype == xp.float32
220
- elif dtype == xp.complex128:
221
- assert out.dtype == xp.float64
222
- else:
223
- assert out.dtype == dtype
+ assert out.dtype == dh.real_dtype_for(dtype)
224
225
# Guard vs. numpy.dtype.__eq__ lax comparison
226
assert not isinstance(out.dtype, str)
0 commit comments