Skip to content

Commit 0c79dec

Browse files
committed
There is no TypeError raised on operator.index(np.False_) with NumPy <
2.3.0, so excluding these versions for test_triu_indices_error
1 parent e0f312b commit 0c79dec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dpnp/tests/test_indexing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,7 @@ def test_triu_indices(n, k, m):
11721172
assert_array_equal(expected, result)
11731173

11741174

1175+
@testing.with_requires("numpy>=2.3.0")
11751176
@pytest.mark.parametrize("k", [3.2, dpnp.bool(0), numpy.array(3.14)])
11761177
def test_triu_indices_error(k):
11771178
with pytest.raises(

0 commit comments

Comments
 (0)