Skip to content

Commit 096857c

Browse files
committed
add falls back on numpy for tests
1 parent 6c2ad26 commit 096857c

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

dpnp/dpnp_iface_bitwise.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def left_shift(
374374
>>> np.left_shift(x1, x2)
375375
array([10, 20, 40])
376376
377-
The ``<<`` operator can be used as a shorthand for ``right_shift`` on
377+
The ``<<`` operator can be used as a shorthand for ``left_shift`` on
378378
:class:`dpnp.ndarray`.
379379
380380
>>> x1 << x2
@@ -437,7 +437,7 @@ def right_shift(
437437
>>> np.right_shift(x1, x2)
438438
array([5, 2, 1])
439439
440-
The ``>>`` operator can be used as a shorthand for ``left_shift`` on
440+
The ``>>`` operator can be used as a shorthand for ``right_shift`` on
441441
:class:`dpnp.ndarray`.
442442
443443
>>> x1 >> x2

tests/skipped_tests_gpu.tbl

-1
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,6 @@ tests/third_party/cupy/math_tests/test_floating.py::TestFloating::test_signbit
721721
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_clip_min_max_none
722722
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_external_clip4
723723
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_absolute_negative
724-
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_sign_negative
725724
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_maximum_nan
726725
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_minimum_nan
727726
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_fmax_nan

tests/skipped_tests_gpu_no_fp64.tbl

+2
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,8 @@ tests/third_party/cupy/math_tests/test_hyperbolic.py::TestHyperbolic::test_cosh
12201220
tests/third_party/cupy/math_tests/test_hyperbolic.py::TestHyperbolic::test_sinh
12211221
tests/third_party/cupy/math_tests/test_hyperbolic.py::TestHyperbolic::test_tanh
12221222

1223+
tests/third_party/cupy/math_tests/test_misc.py::TestMisc::test_sign_negative
1224+
12231225
tests/third_party/cupy/math_tests/test_sumprod.py::TestNansumNanprodLong_param_0_{axis=0, func='nansum', keepdims=True, shape=(2, 3, 4), transpose_axes=True}::test_nansum_all
12241226
tests/third_party/cupy/math_tests/test_sumprod.py::TestNansumNanprodLong_param_0_{axis=0, func='nansum', keepdims=True, shape=(2, 3, 4), transpose_axes=True}::test_nansum_axis_transposed
12251227
tests/third_party/cupy/math_tests/test_sumprod.py::TestNansumNanprodLong_param_1_{axis=0, func='nansum', keepdims=True, shape=(2, 3, 4), transpose_axes=False}::test_nansum_all

tests/test_mathematical.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ def test_negative_boolean():
414414
[[2, 0, -2], [1.1, -1.1]],
415415
ids=["[2, 0, -2]", "[1.1, -1.1]"],
416416
)
417-
@pytest.mark.parametrize("dtype", get_all_dtypes(no_bool=True, no_complex=True))
417+
@pytest.mark.parametrize("dtype", get_all_dtypes(no_bool=True))
418+
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
418419
def test_sign(data, dtype):
419420
np_a = numpy.array(data, dtype=dtype)
420421
dpnp_a = dpnp.array(data, dtype=dtype)

tests/third_party/cupy/math_tests/test_misc.py

+1
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def test_fabs_negative(self, xp, dtype):
193193
def test_sign(self):
194194
self.check_unary("sign", no_bool=True)
195195

196+
@pytest.mark.usefixtures("allow_fall_back_on_numpy")
196197
def test_sign_negative(self):
197198
self.check_unary_negative("sign", no_bool=True)
198199

0 commit comments

Comments
 (0)