Skip to content

Commit 22a668b

Browse files
committed
Address PR comments related to remving explicit dtype-int tests
1 parent db19303 commit 22a668b

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

dpnp/tests/test_ndarray.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
get_all_dtypes,
2020
get_complex_dtypes,
2121
get_float_dtypes,
22-
get_integer_dtypes,
2322
has_support_aspect64,
2423
)
2524
from .third_party.cupy import testing
@@ -305,17 +304,6 @@ def test_basic(self, data):
305304
assert_array_equal(ia.tolist(), a.tolist())
306305

307306

308-
# dtypes spanning itemsizes of 1, 2, 4, 8 and 16 bytes, to stress the byte
309-
# offset arithmetic performed when creating a view of an array with a non-zero
310-
# USM offset
311-
_view_offset_dtypes = list(
312-
dict.fromkeys(
313-
get_all_dtypes(no_none=True, no_float16=False)
314-
+ get_integer_dtypes(all_int_types=True)
315-
)
316-
)
317-
318-
319307
class TestView:
320308
def test_none_dtype(self):
321309
a = numpy.ones((1, 2, 4), dtype=numpy.int32)
@@ -384,7 +372,9 @@ def test_nonzero_offset_negative_strides(self):
384372
result = ia[8:2:-2].view()
385373
assert_array_equal(result, expected)
386374

387-
@pytest.mark.parametrize("dt", _view_offset_dtypes)
375+
@pytest.mark.parametrize(
376+
"dt", get_all_dtypes(no_none=True, no_float16=False)
377+
)
388378
@pytest.mark.parametrize(
389379
"sl",
390380
[

0 commit comments

Comments
 (0)