Skip to content

Commit 8c1b28e

Browse files
Fix DeprecationWarning in TestInterp for unsigned integer dtypes (#2450)
This PR suggests update `TestInterp::test_left_right_args` to avoid `DeprecationWarning` that occurs when using negative values with unsigned integer dtypes (when DPNP_TEST_ALL_INT_TYPES=1)
1 parent 8b4a332 commit 8c1b28e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/tests/test_mathematical.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ def test_complex_fp(self, dtype_x, dtype_y):
11881188
"left, right", [[-40, 40], [dpnp.array(-40), dpnp.array(40)]]
11891189
)
11901190
def test_left_right_args(self, dtype, left, right):
1191-
x = numpy.array([-1, 0, 1, 2, 3, 4, 5, 6], dtype=dtype)
1191+
x = numpy.array([0, 1, 2, 3, 4, 5, 6], dtype=dtype)
11921192
xp = numpy.array([0, 3, 6], dtype=dtype)
11931193
fp = numpy.array([0, 9, 18], dtype=dtype)
11941194

0 commit comments

Comments
 (0)