Skip to content

Commit

Permalink
cover WRITEBACKIFCOPY
Browse files Browse the repository at this point in the history
  • Loading branch information
Bchass committed Jun 4, 2024
1 parent 22f31e2 commit 7ccfd5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tinynumpy/tests/test_tinynumpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ def test_setitem_writeable():
a = tnp.array([1, 2, 3])
a.flags = {'WRITEABLE': False}
a[0] = 4

with pytest.raises(ValueError):
a = tnp.array([1, 2, 3])
a.flags = {'WRITEBACKIFCOPY': True}


def test_transpose():
Expand Down

0 comments on commit 7ccfd5a

Please sign in to comment.