Skip to content

Commit 89f7cba

Browse files
committed
Enable third party tests
1 parent d89b4ac commit 89f7cba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
from __future__ import annotations
2+
13
import unittest
24

35
import numpy
46
import pytest
57

6-
import dpnp as cupy
78
from dpnp.tests.third_party.cupy import testing
89

910

@@ -122,7 +123,6 @@ def test_scalar(self, xp, dtype):
122123
@testing.for_all_dtypes()
123124
@testing.numpy_cupy_equal()
124125
def test_list(self, xp, dtype):
125-
a = testing.shaped_arange((2, 3), xp, dtype)
126-
if xp == cupy:
127-
a = a.asnumpy()
128-
return getattr(xp, self.func)(a.tolist())
126+
return getattr(xp, self.func)(
127+
testing.shaped_arange((2, 3), xp, dtype).tolist()
128+
)

0 commit comments

Comments
 (0)