Skip to content

Commit e4b3207

Browse files
committed
skip sparse
1 parent 6aff89e commit e4b3207

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_at.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ def x(request):
7373
("max", 25, [10, 25, 30]),
7474
],
7575
)
76-
def test_operations(x, copy, op, arg, expect):
76+
def test_update_ops(x, copy, op, arg, expect):
77+
if is_pydata_sparse_array(x):
78+
pytest.skip("at() does not support updates on sparse arrays")
79+
7780
with assert_copy(x, copy):
7881
y = getattr(at(x, slice(1, None)), op)(arg, copy=copy)
7982
assert isinstance(y, type(x))
@@ -155,9 +158,9 @@ def test_get_fancy_indices(x, idx, tuple_index):
155158

156159

157160
def test_variant_index_syntax(x):
158-
y = at(x)[:2].set(40)
161+
y = at(x)[:2].get()
159162
assert isinstance(y, type(x))
160-
assert_array_equal(y, [40, 40, 30])
163+
assert_array_equal(y, [10, 20])
161164

162165
with pytest.raises(ValueError):
163166
at(x, 1)[2]

0 commit comments

Comments
 (0)