Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dpnp/tests/test_mathematical.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

from .helper import (
assert_dtype_allclose,
generate_random_numpy_array,
get_all_dtypes,
get_complex_dtypes,
get_float_complex_dtypes,
Expand Down Expand Up @@ -2321,7 +2322,7 @@ def test_basic(self, dt):
"dt", get_all_dtypes(no_none=True, no_complex=True)
)
def test_rand(self, dt):
a = numpy.random.rand(10) * 100
a = generate_random_numpy_array((10,), seed_value=42) * 100
a = a.astype(dtype=dt)
ia = dpnp.array(a)

Expand All @@ -2345,7 +2346,7 @@ def test_period(self, dt):
"dt", get_all_dtypes(no_none=True, no_bool=True, no_complex=True)
)
def test_rand_period(self, dt):
a = numpy.random.rand(10) * 1000
a = generate_random_numpy_array((10,), seed_value=42) * 1000
a = a.astype(dtype=dt)
ia = dpnp.array(a)

Expand Down Expand Up @@ -3429,6 +3430,7 @@ def test_basic(self, array, val, data_type, val_type):

@pytest.mark.parametrize("dtype", get_all_dtypes())
def test_power(self, dtype):
numpy.random.seed(42)
np_array1, np_array2, expected = _get_numpy_arrays_2in_1out(
"power", dtype, [0, 10, 10]
)
Expand Down
Loading