We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb49802 commit 6dc6ecdCopy full SHA for 6dc6ecd
array_api_tests/pytest_helpers.py
@@ -464,8 +464,8 @@ def assert_array_elements(
464
f"{sh.fmt_idx(out_repr, idx)}={at_out}, should be {at_expected} "
465
f"{f_func}"
466
)
467
- _assert_float_element(at_out.real, at_expected.real, msg)
468
- _assert_float_element(at_out.imag, at_expected.imag, msg)
+ _assert_float_element(xp.real(at_out), xp.real(at_expected), msg)
+ _assert_float_element(xp.imag(at_out), xp.imag(at_expected), msg)
469
else:
470
assert xp.all(
471
out == expected
0 commit comments