Skip to content

Commit 4952d79

Browse files
committed
TST: Add appropriate skips for lazy xp function classes test
1 parent 49bfbdc commit 4952d79

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_testing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ def test_parent_method_not_tagged(self):
359359
assert hasattr(B.g, "_lazy_xp_function")
360360
assert not hasattr(A.g, "_lazy_xp_function")
361361

362+
@pytest.mark.skip_xp_backend(Backend.SPARSE, reason="converts to NumPy")
363+
@pytest.mark.skip_xp_backend(Backend.CUPY, reason="converts to NumPy")
364+
@pytest.mark.skip_xp_backend(Backend.JAX_GPU, reason="converts to NumPy")
365+
@pytest.mark.skip_xp_backend(Backend.TORCH_GPU, reason="converts to NumPy")
362366
def test_lazy_xp_function_classes(self, xp: ModuleType, library: Backend):
363367
x = xp.asarray([1.1, 2.2, 3.3])
364368
y = xp.asarray([1.0, 2.0, 3.0])

0 commit comments

Comments
 (0)