Skip to content

Commit

Permalink
Build examples in test_nep50_examples.py based on fp64 aspect
Browse files Browse the repository at this point in the history
  • Loading branch information
antonwolfy committed Jan 28, 2025
1 parent 4e6c440 commit 509da7b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dpnp/tests/third_party/cupy/core_tests/test_nep50_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
"uint8(1) + 2",
"array([1], uint8) + int64(1)",
"array([1], uint8) + array(1, int64)",
"array([1.], float32) + float64(1.)",
"array([1.], float32) + array(1., float64)",
"array([1], uint8) + 1",
"array([1], uint8) + 200",
"array([100], uint8) + 200",
Expand All @@ -26,7 +24,6 @@
"uint8(100) + 200",
"float32(1) + 3e100",
"array([1.0], float32) + 1e-14 == 1.0",
"array([0.1], float32) == float64(0.1)",
"array(1.0, float32) + 1e-14 == 1.0",
"array([1.], float32) + 3",
"array([1.], float32) + int64(3)",
Expand All @@ -43,6 +40,12 @@
"1.0 + array([1, 2, 3], int8)",
"array([1], float32) + 1j",
]
if has_support_aspect64():
examples += [
"array([1.], float32) + float64(1.)",
"array([1.], float32) + array(1., float64)",
"array([0.1], float32) == float64(0.1)",
]


@pytest.mark.filterwarnings("ignore::RuntimeWarning")
Expand Down

0 comments on commit 509da7b

Please sign in to comment.