Skip to content

Commit 6f87e4a

Browse files
Use absolute import paths in cupy tests
1 parent c2f55a6 commit 6f87e4a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+99
-153
lines changed

dpnp/tests/third_party/cupy/binary_tests/test_elementwise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

3-
from .. import testing
3+
from dpnp.tests.third_party.cupy import testing
44

55

66
class TestElementwise(unittest.TestCase):

dpnp/tests/third_party/cupy/core_tests/test_core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
import pytest
66

77
import dpnp as cupy
8-
9-
from .. import testing
8+
from dpnp.tests.third_party.cupy import testing
109

1110

1211
class TestSize(unittest.TestCase):

dpnp/tests/third_party/cupy/core_tests/test_core_elementwise.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import pytest
55

66
import dpnp as cupy
7-
8-
from .. import testing
7+
from dpnp.tests.third_party.cupy import testing
98

109

1110
class TestElementwise(unittest.TestCase):

dpnp/tests/third_party/cupy/core_tests/test_dlpack.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import pytest
77

88
import dpnp as cupy
9-
10-
from .. import testing
9+
from dpnp.tests.third_party.cupy import testing
1110

1211

1312
def _gen_array(dtype, alloc_q=None):

dpnp/tests/third_party/cupy/core_tests/test_flags.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import pytest
55

66
import dpnp as cupy
7-
8-
from .. import testing
7+
from dpnp.tests.third_party.cupy import testing
98

109

1110
@pytest.mark.skip("class Flags is not exposed")

dpnp/tests/third_party/cupy/core_tests/test_ndarray.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
from dpctl.tensor._numpy_helper import AxisError
88

99
import dpnp as cupy
10-
11-
from .. import testing
10+
from dpnp.tests.third_party.cupy import testing
1211

1312

1413
def get_array_module(*args):

dpnp/tests/third_party/cupy/core_tests/test_ndarray_complex_ops.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
import pytest
55

66
import dpnp as cupy
7-
8-
from ....helper import has_support_aspect64
9-
from .. import testing
7+
from dpnp.tests.helper import has_support_aspect64
8+
from dpnp.tests.third_party.cupy import testing
109

1110

1211
class TestConj(unittest.TestCase):

dpnp/tests/third_party/cupy/core_tests/test_ndarray_conversion.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import pytest
55

66
import dpnp as cupy
7-
8-
from .. import testing
7+
from dpnp.tests.third_party.cupy import testing
98

109

1110
@testing.parameterize(

dpnp/tests/third_party/cupy/core_tests/test_ndarray_copy_and_view.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
import pytest
33

44
import dpnp as cupy
5-
6-
from .. import testing
5+
from dpnp.tests.third_party.cupy import testing
76

87
if numpy.lib.NumpyVersion(numpy.__version__) >= "2.0.0b1":
98
from numpy.exceptions import ComplexWarning

dpnp/tests/third_party/cupy/core_tests/test_ndarray_math.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import numpy
44
import pytest
55

6-
from ....helper import has_support_aspect64
7-
from .. import testing
6+
from dpnp.tests.helper import has_support_aspect64
7+
from dpnp.tests.third_party.cupy import testing
88

99

1010
@testing.parameterize(

0 commit comments

Comments
 (0)