Skip to content

Commit e8d10e5

Browse files
committed
Fix ruff check issues with pytest.warn
1 parent d0dba3c commit e8d10e5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

numcodecs/tests/test_zarr3.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def test_generic_filter(
122122
],
123123
)
124124

125-
a[:, :] = data.copy()
126-
a = zarr.open_array(store / "generic", mode="r")
125+
a[:, :] = data.copy()
126+
a = zarr.open_array(store / "generic", mode="r")
127127
np.testing.assert_array_equal(data, a[:, :])
128128

129129

@@ -140,8 +140,8 @@ def test_generic_filter_bitround(store: StorePath):
140140
filters=[numcodecs.zarr3.BitRound(keepbits=3)],
141141
)
142142

143-
a[:, :] = data.copy()
144-
a = zarr.open_array(store / "generic_bitround", mode="r")
143+
a[:, :] = data.copy()
144+
a = zarr.open_array(store / "generic_bitround", mode="r")
145145
assert np.allclose(data, a[:, :], atol=0.1)
146146

147147

@@ -158,8 +158,8 @@ def test_generic_filter_quantize(store: StorePath):
158158
filters=[numcodecs.zarr3.Quantize(digits=3)],
159159
)
160160

161-
a[:, :] = data.copy()
162-
a = zarr.open_array(store / "generic_quantize", mode="r")
161+
a[:, :] = data.copy()
162+
a = zarr.open_array(store / "generic_quantize", mode="r")
163163
assert np.allclose(data, a[:, :], atol=0.001)
164164

165165

@@ -177,8 +177,8 @@ def test_generic_filter_packbits(store: StorePath):
177177
filters=[numcodecs.zarr3.PackBits()],
178178
)
179179

180-
a[:, :] = data.copy()
181-
a = zarr.open_array(store / "generic_packbits", mode="r")
180+
a[:, :] = data.copy()
181+
a = zarr.open_array(store / "generic_packbits", mode="r")
182182
np.testing.assert_array_equal(data, a[:, :])
183183

184184
with pytest.raises(ValueError, match=".*requires bool dtype.*"):
@@ -217,8 +217,8 @@ def test_generic_checksum(
217217
compressors=[codec_class()],
218218
)
219219

220-
a[:, :] = data.copy()
221-
a = zarr.open_array(store / "generic_checksum", mode="r")
220+
a[:, :] = data.copy()
221+
a = zarr.open_array(store / "generic_checksum", mode="r")
222222
np.testing.assert_array_equal(data, a[:, :])
223223

224224

@@ -267,8 +267,8 @@ def test_delta_astype(store: StorePath):
267267
],
268268
)
269269

270-
a[:, :] = data.copy()
271-
a = zarr.open_array(store / "generic", mode="r")
270+
a[:, :] = data.copy()
271+
a = zarr.open_array(store / "generic", mode="r")
272272
np.testing.assert_array_equal(data, a[:, :])
273273

274274

0 commit comments

Comments
 (0)