Skip to content

Commit 23d7281

Browse files
authored
Makes tests with floor_divide more stable on PVC (#2459)
`TestFloorDivideRemainder::test_basic` test generates the same values for both input array. The PR proposes to change values for divisor input array and to make them different from dividend input array. That should makes test more stable with `float32` data type. Currently it might fail on PVC with LTS driver for case with `floor_divide` function.
1 parent 56ccf86 commit 23d7281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/tests/test_binary_ufuncs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def do_inplace_op(self, base, other, func):
291291
@pytest.mark.parametrize("dtype", ALL_DTYPES)
292292
def test_basic(self, func, dtype):
293293
a = generate_random_numpy_array(10, dtype)
294-
b = generate_random_numpy_array(10, dtype)
294+
b = generate_random_numpy_array(10, dtype, low=-5, high=5, seed_value=8)
295295
expected = getattr(numpy, func)(a, b)
296296

297297
ia, ib = dpnp.array(a), dpnp.array(b)

0 commit comments

Comments
 (0)