Skip to content

Commit e3e9afe

Browse files
Remove previously added fixtures for unsupported funcs on CUDA
1 parent 0a79e66 commit e3e9afe

File tree

9 files changed

+0
-23
lines changed

9 files changed

+0
-23
lines changed

dpnp/tests/test_random.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def check_seed(self, dist_name, params):
4545
assert_allclose(a1, a2, rtol=1e-07, atol=0)
4646

4747

48-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
4948
@pytest.mark.parametrize(
5049
"func",
5150
[dpnp.random.chisquare, dpnp.random.rand, dpnp.random.randn],
@@ -62,7 +61,6 @@ def test_input_size(func):
6261
assert output_shape == res.shape
6362

6463

65-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
6664
@pytest.mark.parametrize(
6765
"func",
6866
[
@@ -84,7 +82,6 @@ def test_input_shape(func):
8482
assert shape == res.shape
8583

8684

87-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
8885
@pytest.mark.parametrize(
8986
"func",
9087
[
@@ -107,7 +104,6 @@ def test_check_output(func):
107104
assert dpnp.all(res < 1)
108105

109106

110-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
111107
@pytest.mark.parametrize(
112108
"func",
113109
[
@@ -134,7 +130,6 @@ def test_seed(func):
134130
assert_allclose(a1, a2, rtol=1e-07, atol=0)
135131

136132

137-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
138133
def test_randn_normal_distribution():
139134
"""
140135
Check the moments of the normal distribution sample obtained
@@ -672,7 +667,6 @@ def test_seed(self):
672667

673668

674669
@pytest.mark.skipif(not has_support_aspect64(), reason="Failed on Iris Xe")
675-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
676670
class TestDistributionsNormal(TestDistribution):
677671
def test_extreme_value(self):
678672
loc = 5
@@ -833,13 +827,11 @@ def test_seed(self):
833827
self.check_seed("rayleigh", {"scale": scale})
834828

835829

836-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
837830
class TestDistributionsStandardCauchy(TestDistribution):
838831
def test_seed(self):
839832
self.check_seed("standard_cauchy", {})
840833

841834

842-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
843835
class TestDistributionsStandardExponential(TestDistribution):
844836
def test_moments(self):
845837
shape = 0.8
@@ -875,7 +867,6 @@ def test_seed(self):
875867
self.check_seed("standard_gamma", {"shape": 0.0})
876868

877869

878-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
879870
class TestDistributionsStandardNormal(TestDistribution):
880871
def test_moments(self):
881872
expected_mean = 0.0
@@ -953,7 +944,6 @@ def test_seed(self):
953944

954945

955946
@pytest.mark.skipif(not has_support_aspect64(), reason="Failed on Iris Xe")
956-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
957947
class TestDistributionsUniform(TestDistribution):
958948
def test_extreme_value(self):
959949
low = 1.0
@@ -1080,7 +1070,6 @@ def test_seed(self):
10801070
self.check_seed("zipf", {"a": a})
10811071

10821072

1083-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
10841073
class TestPermutationsTestShuffle:
10851074
@pytest.mark.parametrize(
10861075
"dtype",

dpnp/tests/test_sort.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ def test_complex(self, dtype):
399399
assert result.dtype == expected.dtype
400400

401401

402-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
403402
@pytest.mark.parametrize("kth", [0, 1], ids=["0", "1"])
404403
@pytest.mark.parametrize("dtype", get_all_dtypes(no_none=True))
405404
@pytest.mark.parametrize(

dpnp/tests/test_sycl_queue.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,6 @@ def test_out_2in_1out(func, data1, data2, device):
12771277
assert_sycl_queue_equal(result.sycl_queue, x2.sycl_queue)
12781278

12791279

1280-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
12811280
@pytest.mark.parametrize(
12821281
"device",
12831282
valid_devices,

dpnp/tests/third_party/cupy/creation_tests/test_from_data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,6 @@ def test_copy(self, xp, dtype, order):
516516

517517
@testing.for_CF_orders()
518518
@testing.for_all_dtypes()
519-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
520519
def test_copy_multigpu(self, dtype, order):
521520
q1 = dpctl.SyclQueue()
522521
q2 = dpctl.SyclQueue()

dpnp/tests/third_party/cupy/indexing_tests/test_indexing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ def test_extract_empty_1dim(self, xp):
198198
return xp.extract(b, a)
199199

200200

201-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
202201
class TestChoose(unittest.TestCase):
203202
@testing.for_all_dtypes()
204203
@testing.numpy_cupy_array_equal()

dpnp/tests/third_party/cupy/math_tests/test_arithmetic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,6 @@ def test_casting_dtype_unsafe_ignore_warnings(
685685
class TestArithmeticModf:
686686
@testing.for_float_dtypes()
687687
@testing.numpy_cupy_allclose()
688-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
689688
def test_modf(self, xp, dtype):
690689
a = xp.array([-2.5, -1.5, -0.5, 0, 0.5, 1.5, 2.5], dtype=dtype)
691690
b, c = xp.modf(a)

dpnp/tests/third_party/cupy/math_tests/test_rational.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
class TestRational(unittest.TestCase):
12-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
1312
@testing.for_dtypes(["?", "e", "f", "d", "F", "D"])
1413
def test_gcd_dtype_check(self, dtype):
1514
# TODO: remove it once the issue with CUDA support is resolved
@@ -34,7 +33,6 @@ def test_gcd_check_boundary_cases(self, xp, dtype):
3433
b = xp.array([0, 5, -10, -5, 20, 51, 6, 42])
3534
return xp.gcd(a, b)
3635

37-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
3836
@testing.for_dtypes(["?", "e", "f", "d", "F", "D"])
3937
def test_lcm_dtype_check(self, dtype):
4038
if is_cuda_device():

dpnp/tests/third_party/cupy/random_tests/test_distributions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,6 @@ def test_rayleigh_for_negative_scale(self, scale_dtype):
599599
)
600600
)
601601
class TestDistributionsStandardCauchy(RandomDistributionsTestCase):
602-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
603602
def test_standard_cauchy(self):
604603
self.check_distribution("standard_cauchy", {})
605604

@@ -612,7 +611,6 @@ def test_standard_cauchy(self):
612611
)
613612
)
614613
class TestDistributionsStandardExponential(RandomDistributionsTestCase):
615-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
616614
def test_standard_exponential(self):
617615
self.check_distribution("standard_exponential", {})
618616

@@ -641,7 +639,6 @@ def test_standard_gamma(self, shape_dtype):
641639
)
642640
)
643641
class TestDistributionsStandardNormal(RandomDistributionsTestCase):
644-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
645642
def test_standard_normal(self):
646643
self.check_distribution("standard_normal", {})
647644

dpnp/tests/third_party/cupy/random_tests/test_sample.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from dpnp.tests.third_party.cupy.testing import _condition, _hypothesis
1111

1212

13-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
1413
class TestRandint(unittest.TestCase):
1514
def test_lo_hi_reversed(self):
1615
with self.assertRaises(ValueError):
@@ -107,7 +106,6 @@ def test_goodness_of_fit_2(self):
107106
self.assertTrue(_hypothesis.chi_square_test(counts, expected))
108107

109108

110-
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
111109
class TestRandintDtype(unittest.TestCase):
112110
# numpy.int8, numpy.uint8, numpy.int16, numpy.uint16, numpy.int32])
113111
@testing.for_dtypes([numpy.int32])

0 commit comments

Comments
 (0)