Skip to content

Commit 41a7059

Browse files
authored
Enabled tests in advanced indexing scope (#2404)
This PR enables tests in advanced indexing scope since [dpctl-1913](IntelPython/dpctl#1913) has been resolved.
1 parent 434156d commit 41a7059

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

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

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -609,14 +609,22 @@ def test_invalid_adv_getitem(self):
609609
},
610610
{"shape": (2, 3, 4), "indexes": (slice(None), []), "value": 1},
611611
{"shape": (2, 3, 4), "indexes": ([], []), "value": 1},
612-
# {'shape': (2, 3, 4), 'indexes': numpy.array([], dtype=numpy.bool_),
613-
# 'value': 1}, #dpctl-1913
614-
# {'shape': (2, 3, 4),
615-
# 'indexes': (slice(None), numpy.array([], dtype=numpy.bool_)),
616-
# 'value': 1}, #dpctl-1913
617-
# {'shape': (2, 3, 4), 'indexes': numpy.array([[], []], dtype=numpy.bool_),
618-
# 'value': numpy.random.uniform(size=(4,))}, #dpctl-1913
619-
# {'shape': (2, 3, 4), 'indexes': numpy.empty((0, 0, 4), bool), 'value': 1}, #dpctl-1913
612+
{
613+
"shape": (2, 3, 4),
614+
"indexes": numpy.array([], dtype=numpy.bool_),
615+
"value": 1,
616+
},
617+
{
618+
"shape": (2, 3, 4),
619+
"indexes": (slice(None), numpy.array([], dtype=numpy.bool_)),
620+
"value": 1,
621+
},
622+
{
623+
"shape": (2, 3, 4),
624+
"indexes": numpy.array([[], []], dtype=numpy.bool_),
625+
"value": numpy.random.uniform(size=(4,)),
626+
},
627+
{"shape": (2, 3, 4), "indexes": numpy.empty((0, 0, 4), bool), "value": 1},
620628
# multiple masks
621629
{"shape": (2, 3, 4), "indexes": (True, [True, False]), "value": 1},
622630
{"shape": (2, 3, 4), "indexes": (False, [True, False]), "value": 1},

0 commit comments

Comments
 (0)