Skip to content

Commit 6a547b9

Browse files
committed
Enable supported test for error class in third_party/cupy/test_init.py scope
1 parent ec774a9 commit 6a547b9

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

dpnp/tests/third_party/cupy/test_init.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import operator
24
import os
35
import shutil
@@ -73,6 +75,7 @@ def test_available(self):
7375
assert available
7476

7577

78+
# @pytest.mark.thread_unsafe(reason="modifies environment variables")
7679
@pytest.mark.skip("dpnp.is_available() is not implemented")
7780
class TestNotAvailable(unittest.TestCase):
7881

@@ -145,18 +148,17 @@ def test_bitwise_not_is_invert(self):
145148
assert xp.bitwise_not is xp.invert
146149

147150

148-
@pytest.mark.skip("dpnp.exceptions is not implemented")
149151
@testing.with_requires("numpy>=2.0")
150152
@pytest.mark.parametrize(
151153
"name",
152154
[
153155
"exceptions.AxisError",
154-
"exceptions.ComplexWarning",
155-
"exceptions.ModuleDeprecationWarning",
156-
"exceptions.RankWarning",
157-
"exceptions.TooHardError",
158-
"exceptions.VisibleDeprecationWarning",
159-
"linalg.LinAlgError",
156+
# "exceptions.ComplexWarning",
157+
# "exceptions.ModuleDeprecationWarning",
158+
# "exceptions.RankWarning",
159+
# "exceptions.TooHardError",
160+
# "exceptions.VisibleDeprecationWarning",
161+
# "linalg.LinAlgError",
160162
],
161163
)
162164
def test_error_classes(name):

0 commit comments

Comments
 (0)