Skip to content

Commit 07e7a11

Browse files
committed
Update logic_tests/test_type_test.py
1 parent bdae8e8 commit 07e7a11

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dpnp/tests/third_party/cupy/logic_tests/test_ops.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
class TestOps(unittest.TestCase):
7+
78
@testing.for_all_dtypes(no_complex=True)
89
@testing.numpy_cupy_allclose(atol=1e-5)
910
def check_unary(self, name, xp, dtype):

dpnp/tests/third_party/cupy/logic_tests/test_type_test.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,19 @@ class TestTypeTestingFunctions(unittest.TestCase):
8888
def test(self, xp, dtype):
8989
return getattr(xp, self.func)(xp.ones(5, dtype=dtype))
9090

91-
@pytest.mark.skip("support for scalar not implemented")
91+
@pytest.mark.skip("Scalar input is not supported")
9292
@testing.for_all_dtypes()
9393
@testing.numpy_cupy_equal()
9494
def test_scalar(self, xp, dtype):
9595
return getattr(xp, self.func)(dtype(3))
9696

97-
@pytest.mark.skip("support for list not implemented")
97+
@pytest.mark.skip("List input is not supported")
9898
@testing.for_all_dtypes()
9999
@testing.numpy_cupy_array_equal()
100100
def test_list(self, xp, dtype):
101-
a = testing.shaped_arange((2, 3), xp, dtype)
102-
if xp == cupy:
103-
a = a.asnumpy()
104-
return getattr(xp, self.func)(a.tolist())
101+
return getattr(xp, self.func)(
102+
testing.shaped_arange((2, 3), xp, dtype).tolist()
103+
)
105104

106105

107106
@testing.parameterize(

0 commit comments

Comments
 (0)