Skip to content

Commit deb17ac

Browse files
Apply remarks
1 parent 773b177 commit deb17ac

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

dpnp/tests/test_mathematical.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
get_integer_dtypes,
3131
has_support_aspect16,
3232
has_support_aspect64,
33-
is_cuda_device,
3433
)
3534
from .test_umath import (
3635
_get_numpy_arrays_1in_1out,

dpnp/tests/test_sycl_queue.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,8 +1581,7 @@ def test_cholesky(data, is_empty, device):
15811581
)
15821582
@pytest.mark.parametrize("p", [None, -dpnp.inf, -2, -1, 1, 2, dpnp.inf, "fro"])
15831583
def test_cond(device, p):
1584-
numpy.random.seed(42)
1585-
a = numpy.array(numpy.random.uniform(-5, 5, 16)).reshape(4, 4)
1584+
a = generate_random_numpy_array((4, 4), seed_value=42)
15861585
ia = dpnp.array(a, device=device)
15871586

15881587
result = dpnp.linalg.cond(ia, p=p)

dpnp/tests/test_usm_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ def test_split(func, data1, usm_type):
866866
@pytest.mark.parametrize("usm_type", list_of_usm_types, ids=list_of_usm_types)
867867
@pytest.mark.parametrize("p", [None, -dp.inf, -2, -1, 1, 2, dp.inf, "fro"])
868868
def test_cond(usm_type, p):
869-
a = numpy.array(numpy.random.uniform(-5, 5, 16)).reshape(4, 4)
869+
a = generate_random_numpy_array((4, 4), seed_value=42)
870870
ia = dp.array(a, usm_type=usm_type)
871871

872872
result = dp.linalg.cond(ia, p=p)

0 commit comments

Comments
 (0)