From 7ccfd5a2d15d9d237ecc39f74f8976acd4f6b5df Mon Sep 17 00:00:00 2001 From: BChass <34097574+Bchass@users.noreply.github.com> Date: Mon, 3 Jun 2024 20:32:27 -0400 Subject: [PATCH] cover WRITEBACKIFCOPY --- tinynumpy/tests/test_tinynumpy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tinynumpy/tests/test_tinynumpy.py b/tinynumpy/tests/test_tinynumpy.py index c1b0480..845b4c7 100644 --- a/tinynumpy/tests/test_tinynumpy.py +++ b/tinynumpy/tests/test_tinynumpy.py @@ -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():