Skip to content

Commit 9ae8035

Browse files
author
Vahid Tavanashad
committed
fix error
1 parent fafce08 commit 9ae8035

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dpnp/tests/third_party/cupy/testing/_loops.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,10 +1103,9 @@ def _make_all_dtypes(no_float16, no_bool, no_complex, no_int8):
11031103
dtypes += _int_bool_dtypes
11041104

11051105
if no_int8:
1106-
_dtypes = list(dtypes)
1107-
_dtypes.remove(numpy.int8)
1108-
_dtypes.remove(numpy.uint8)
1109-
dtypes = tuple(_dtypes)
1106+
dtypes = tuple(
1107+
dtype for dtype in dtypes if dtype not in [numpy.int8, numpy.uint8]
1108+
)
11101109

11111110
if config.complex_types and not no_complex:
11121111
dtypes += _complex_dtypes

0 commit comments

Comments
 (0)