Skip to content

Commit 509da7b

Browse files
committed
Build examples in test_nep50_examples.py based on fp64 aspect
1 parent 4e6c440 commit 509da7b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dpnp/tests/third_party/cupy/core_tests/test_nep50_examples.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
"uint8(1) + 2",
1717
"array([1], uint8) + int64(1)",
1818
"array([1], uint8) + array(1, int64)",
19-
"array([1.], float32) + float64(1.)",
20-
"array([1.], float32) + array(1., float64)",
2119
"array([1], uint8) + 1",
2220
"array([1], uint8) + 200",
2321
"array([100], uint8) + 200",
@@ -26,7 +24,6 @@
2624
"uint8(100) + 200",
2725
"float32(1) + 3e100",
2826
"array([1.0], float32) + 1e-14 == 1.0",
29-
"array([0.1], float32) == float64(0.1)",
3027
"array(1.0, float32) + 1e-14 == 1.0",
3128
"array([1.], float32) + 3",
3229
"array([1.], float32) + int64(3)",
@@ -43,6 +40,12 @@
4340
"1.0 + array([1, 2, 3], int8)",
4441
"array([1], float32) + 1j",
4542
]
43+
if has_support_aspect64():
44+
examples += [
45+
"array([1.], float32) + float64(1.)",
46+
"array([1.], float32) + array(1., float64)",
47+
"array([0.1], float32) == float64(0.1)",
48+
]
4649

4750

4851
@pytest.mark.filterwarnings("ignore::RuntimeWarning")

0 commit comments

Comments
 (0)