Skip to content

Commit 1c5da0c

Browse files
committed
Fix tests
1 parent 2a17b8b commit 1c5da0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_funcs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1532,11 +1532,11 @@ def test_kind(self, xp: ModuleType, library: Backend):
15321532
xp_assert_equal(res, expected)
15331533

15341534

1535+
@pytest.mark.skip_xp_backend(Backend.SPARSE, reason="unique_values returns arrays")
15351536
@pytest.mark.skip_xp_backend(
15361537
Backend.ARRAY_API_STRICTEST,
15371538
reason="data_dependent_shapes flag for unique_values is disabled",
15381539
)
1539-
@pytest.mark.xfail_xp_backend(Backend.SPARSE, reason="unique_values returns arrays")
15401540
class TestUnion1d:
15411541
def test_simple(self, xp: ModuleType):
15421542
a = xp.asarray([-1, 1, 0])
@@ -1559,6 +1559,7 @@ def test_3d(self, xp: ModuleType):
15591559
res = union1d(a, b)
15601560
xp_assert_equal(res, expected)
15611561

1562+
@pytest.mark.skip_xp_backend(Backend.TORCH, reason="materialize 'meta' device")
15621563
def test_device(self, xp: ModuleType, device: Device):
15631564
a = xp.asarray([-1, 1, 0], device=device)
15641565
b = xp.asarray([2, -2, 0], device=device)

0 commit comments

Comments
 (0)