Skip to content

Commit bd031a5

Browse files
committed
add test for non-string key attributes
1 parent 4d2a1d4 commit bd031a5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎zarr/tests/test_attrs.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,10 @@ def test_wrong_keys(self, zarr_version):
278278
with pytest.warns(DeprecationWarning, match=warning_msg):
279279
a[1] = "foo"
280280

281-
with pytest.warns(DeprecationWarning, match=warning_msg):
281+
# with pytest.warns(DeprecationWarning, match=warning_msg):
282+
# a.put({1: "foo"})
283+
284+
with pytest.raises(TypeError):
282285
a.put({1: "foo"})
283286

284287
with pytest.warns(DeprecationWarning, match=warning_msg):

0 commit comments

Comments
 (0)