Skip to content

Commit 96d128d

Browse files
committed
Disable tests for broadcast() and interp() by pytest.mark.skip
1 parent 22b135c commit 96d128d

File tree

4 files changed

+13
-56
lines changed

4 files changed

+13
-56
lines changed

dpnp/tests/skipped_tests.tbl

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -105,31 +105,3 @@ tests/third_party/cupy/indexing_tests/test_iterate.py::TestFlatiterSubscriptInde
105105
tests/third_party/cupy/indexing_tests/test_iterate.py::TestFlatiterSubscriptIndexError_param_2_{index=True, shape=(2, 3, 4)}::test_setitem
106106
tests/third_party/cupy/indexing_tests/test_iterate.py::TestFlatiterSubscriptIndexError_param_3_{index=[0], shape=(2, 3, 4)}::test_getitem
107107
tests/third_party/cupy/indexing_tests/test_iterate.py::TestFlatiterSubscriptIndexError_param_3_{index=[0], shape=(2, 3, 4)}::test_setitem
108-
109-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_0_{shapes=[(), ()]}::test_broadcast
110-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_10_{shapes=[(0, 1, 1, 0, 3), (5, 2, 0, 1, 0, 0, 3), (2, 1, 0, 0, 0, 3)]}::test_broadcast
111-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_1_{shapes=[(0,), (0,)]}::test_broadcast
112-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_2_{shapes=[(1,), (1,)]}::test_broadcast
113-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_3_{shapes=[(2,), (2,)]}::test_broadcast
114-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_4_{shapes=[(0,), (1,)]}::test_broadcast
115-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_5_{shapes=[(2, 3), (1, 3)]}::test_broadcast
116-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_6_{shapes=[(2, 1, 3, 4), (3, 1, 4)]}::test_broadcast
117-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_7_{shapes=[(4, 3, 2, 3), (2, 3)]}::test_broadcast
118-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_8_{shapes=[(2, 0, 1, 1, 3), (2, 1, 0, 0, 3)]}::test_broadcast
119-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_9_{shapes=[(0, 1, 1, 3), (2, 1, 0, 0, 3)]}::test_broadcast
120-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestInvalidBroadcast_param_0_{shapes=[(3,), (2,)]}::test_invalid_broadcast
121-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestInvalidBroadcast_param_1_{shapes=[(3, 2), (2, 3)]}::test_invalid_broadcast
122-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestInvalidBroadcast_param_2_{shapes=[(3, 2), (3, 4)]}::test_invalid_broadcast
123-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestInvalidBroadcast_param_3_{shapes=[(0,), (2,)]}::test_invalid_broadcast
124-
125-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp
126-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_period
127-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_left_right
128-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_nan_fy
129-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_nan_fx
130-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_nan_x
131-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_inf_fy
132-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_inf_fx
133-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_inf_x
134-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_size1
135-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_inf_to_nan

dpnp/tests/skipped_tests_gpu.tbl

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -114,31 +114,3 @@ tests/third_party/cupy/indexing_tests/test_iterate.py::TestFlatiterSubscriptInde
114114
tests/third_party/cupy/indexing_tests/test_iterate.py::TestFlatiterSubscriptIndexError_param_2_{index=True, shape=(2, 3, 4)}::test_setitem
115115
tests/third_party/cupy/indexing_tests/test_iterate.py::TestFlatiterSubscriptIndexError_param_3_{index=[0], shape=(2, 3, 4)}::test_getitem
116116
tests/third_party/cupy/indexing_tests/test_iterate.py::TestFlatiterSubscriptIndexError_param_3_{index=[0], shape=(2, 3, 4)}::test_setitem
117-
118-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_0_{shapes=[(), ()]}::test_broadcast
119-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_1_{shapes=[(0,), (0,)]}::test_broadcast
120-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_2_{shapes=[(1,), (1,)]}::test_broadcast
121-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_3_{shapes=[(2,), (2,)]}::test_broadcast
122-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_4_{shapes=[(0,), (1,)]}::test_broadcast
123-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_5_{shapes=[(2, 3), (1, 3)]}::test_broadcast
124-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_6_{shapes=[(2, 1, 3, 4), (3, 1, 4)]}::test_broadcast
125-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_7_{shapes=[(4, 3, 2, 3), (2, 3)]}::test_broadcast
126-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_8_{shapes=[(2, 0, 1, 1, 3), (2, 1, 0, 0, 3)]}::test_broadcast
127-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_9_{shapes=[(0, 1, 1, 3), (2, 1, 0, 0, 3)]}::test_broadcast
128-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestBroadcast_param_10_{shapes=[(0, 1, 1, 0, 3), (5, 2, 0, 1, 0, 0, 3), (2, 1, 0, 0, 0, 3)]}::test_broadcast
129-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestInvalidBroadcast_param_0_{shapes=[(3,), (2,)]}::test_invalid_broadcast
130-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestInvalidBroadcast_param_1_{shapes=[(3, 2), (2, 3)]}::test_invalid_broadcast
131-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestInvalidBroadcast_param_2_{shapes=[(3, 2), (3, 4)]}::test_invalid_broadcast
132-
tests/third_party/cupy/manipulation_tests/test_dims.py::TestInvalidBroadcast_param_3_{shapes=[(0,), (2,)]}::test_invalid_broadcast
133-
134-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp
135-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_period
136-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_left_right
137-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_nan_fy
138-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_nan_fx
139-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_nan_x
140-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_inf_fy
141-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_inf_fx
142-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_inf_x
143-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_size1
144-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_interp_inf_to_nan

dpnp/tests/third_party/cupy/manipulation_tests/test_dims.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ def _broadcast(self, xp, dtype, shapes):
300300
arrays = [testing.shaped_arange(s, xp, dtype) for s in shapes]
301301
return xp.broadcast(*arrays)
302302

303+
@pytest.mark.skip("broadcast() is not supported yet")
303304
@testing.for_all_dtypes()
304305
def test_broadcast(self, dtype):
305306
broadcast_np = self._broadcast(numpy, dtype, self.shapes)
@@ -339,6 +340,7 @@ def test_broadcast_arrays(self, xp, dtype):
339340
)
340341
class TestInvalidBroadcast(unittest.TestCase):
341342

343+
@pytest.mark.skip("broadcast() is not supported yet")
342344
@testing.for_all_dtypes()
343345
def test_invalid_broadcast(self, dtype):
344346
for xp in (numpy, cupy):

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ def test_real_if_close_with_float_tol_false(self, xp, dtype):
366366
assert x.dtype == out.dtype
367367
return out
368368

369+
@pytest.mark.skip("interp() is not supported yet")
369370
@testing.for_all_dtypes(name="dtype_x", no_bool=True, no_complex=True)
370371
@testing.for_all_dtypes(name="dtype_y", no_bool=True)
371372
@testing.numpy_cupy_allclose(atol=1e-5)
@@ -376,6 +377,7 @@ def test_interp(self, xp, dtype_y, dtype_x):
376377
fy = xp.sin(fx).astype(dtype_y)
377378
return xp.interp(x, fx, fy)
378379

380+
@pytest.mark.skip("interp() is not supported yet")
379381
@testing.for_all_dtypes(name="dtype_x", no_bool=True, no_complex=True)
380382
@testing.for_all_dtypes(name="dtype_y", no_bool=True)
381383
@testing.numpy_cupy_allclose(atol=1e-5)
@@ -386,6 +388,7 @@ def test_interp_period(self, xp, dtype_y, dtype_x):
386388
fy = xp.sin(fx).astype(dtype_y)
387389
return xp.interp(x, fx, fy, period=5)
388390

391+
@pytest.mark.skip("interp() is not supported yet")
389392
@testing.for_all_dtypes(name="dtype_x", no_bool=True, no_complex=True)
390393
@testing.for_all_dtypes(name="dtype_y", no_bool=True)
391394
@testing.numpy_cupy_allclose(atol=1e-5)
@@ -398,6 +401,7 @@ def test_interp_left_right(self, xp, dtype_y, dtype_x):
398401
right = 20
399402
return xp.interp(x, fx, fy, left, right)
400403

404+
@pytest.mark.skip("interp() is not supported yet")
401405
@testing.with_requires("numpy>=1.17.0")
402406
@testing.for_all_dtypes(name="dtype_x", no_bool=True, no_complex=True)
403407
@testing.for_dtypes("efdFD", name="dtype_y")
@@ -410,6 +414,7 @@ def test_interp_nan_fy(self, xp, dtype_y, dtype_x):
410414
fy[0] = fy[2] = fy[-1] = numpy.nan
411415
return xp.interp(x, fx, fy)
412416

417+
@pytest.mark.skip("interp() is not supported yet")
413418
@testing.with_requires("numpy>=1.17.0")
414419
@testing.for_float_dtypes(name="dtype_x")
415420
@testing.for_dtypes("efdFD", name="dtype_y")
@@ -422,6 +427,7 @@ def test_interp_nan_fx(self, xp, dtype_y, dtype_x):
422427
fx[-1] = numpy.nan # x and fx must remain sorted (NaNs are the last)
423428
return xp.interp(x, fx, fy)
424429

430+
@pytest.mark.skip("interp() is not supported yet")
425431
@testing.with_requires("numpy>=1.17.0")
426432
@testing.for_float_dtypes(name="dtype_x")
427433
@testing.for_dtypes("efdFD", name="dtype_y")
@@ -434,6 +440,7 @@ def test_interp_nan_x(self, xp, dtype_y, dtype_x):
434440
x[-1] = numpy.nan # x and fx must remain sorted (NaNs are the last)
435441
return xp.interp(x, fx, fy)
436442

443+
@pytest.mark.skip("interp() is not supported yet")
437444
@testing.with_requires("numpy>=1.17.0")
438445
@testing.for_all_dtypes(name="dtype_x", no_bool=True, no_complex=True)
439446
@testing.for_dtypes("efdFD", name="dtype_y")
@@ -446,6 +453,7 @@ def test_interp_inf_fy(self, xp, dtype_y, dtype_x):
446453
fy[0] = fy[2] = fy[-1] = numpy.inf
447454
return xp.interp(x, fx, fy)
448455

456+
@pytest.mark.skip("interp() is not supported yet")
449457
@testing.with_requires("numpy>=1.17.0")
450458
@testing.for_float_dtypes(name="dtype_x")
451459
@testing.for_dtypes("efdFD", name="dtype_y")
@@ -458,6 +466,7 @@ def test_interp_inf_fx(self, xp, dtype_y, dtype_x):
458466
fx[-1] = numpy.inf # x and fx must remain sorted
459467
return xp.interp(x, fx, fy)
460468

469+
@pytest.mark.skip("interp() is not supported yet")
461470
@testing.with_requires("numpy>=1.17.0")
462471
@testing.for_float_dtypes(name="dtype_x")
463472
@testing.for_dtypes("efdFD", name="dtype_y")
@@ -470,6 +479,7 @@ def test_interp_inf_x(self, xp, dtype_y, dtype_x):
470479
x[-1] = numpy.inf # x and fx must remain sorted
471480
return xp.interp(x, fx, fy)
472481

482+
@pytest.mark.skip("interp() is not supported yet")
473483
@testing.for_all_dtypes(name="dtype_x", no_bool=True, no_complex=True)
474484
@testing.for_all_dtypes(name="dtype_y", no_bool=True)
475485
@testing.numpy_cupy_allclose(atol=1e-5)
@@ -482,6 +492,7 @@ def test_interp_size1(self, xp, dtype_y, dtype_x):
482492
right = 20
483493
return xp.interp(x, fx, fy, left, right)
484494

495+
@pytest.mark.skip("interp() is not supported yet")
485496
@testing.with_requires("numpy>=1.17.0")
486497
@testing.for_float_dtypes(name="dtype_x")
487498
@testing.for_dtypes("efdFD", name="dtype_y")

0 commit comments

Comments
 (0)