Skip to content

Commit fdcf949

Browse files
committed
renamed: test_cupy.py -> test_meta_array.py
1 parent 0dc8f93 commit fdcf949

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

zarr/tests/test_cupy.py renamed to zarr/tests/test_meta_array.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def test_empty(module, compressor):
162162
z = empty(
163163
100,
164164
chunks=10,
165-
compressor=init_compressor(compressor),
165+
compressor=compressor,
166166
meta_array=xp.empty(()),
167167
)
168168
assert (100,) == z.shape
@@ -175,7 +175,7 @@ def test_zeros(module, compressor):
175175
z = zeros(
176176
100,
177177
chunks=10,
178-
compressor=init_compressor(compressor),
178+
compressor=compressor,
179179
meta_array=xp.empty(()),
180180
)
181181
assert (100,) == z.shape
@@ -189,7 +189,7 @@ def test_ones(module, compressor):
189189
z = ones(
190190
100,
191191
chunks=10,
192-
compressor=init_compressor(compressor),
192+
compressor=compressor,
193193
meta_array=xp.empty(()),
194194
)
195195
assert (100,) == z.shape
@@ -205,7 +205,7 @@ def test_full(module, compressor):
205205
chunks=10,
206206
fill_value=42,
207207
dtype="i4",
208-
compressor=init_compressor(compressor),
208+
compressor=compressor,
209209
meta_array=xp.empty(()),
210210
)
211211
assert (100,) == z.shape
@@ -218,7 +218,7 @@ def test_full(module, compressor):
218218
chunks=10,
219219
fill_value=np.nan,
220220
dtype="f8",
221-
compressor=init_compressor(compressor),
221+
compressor=compressor,
222222
meta_array=xp.empty(()),
223223
)
224224
assert np.all(np.isnan(z[:]))
@@ -230,11 +230,11 @@ def test_group(tmp_path, module, compressor, store_type):
230230
xp = ensure_module(module)
231231
store = init_store(tmp_path, store_type)
232232
g = open_group(store, meta_array=xp.empty(()))
233-
g.ones("data", shape=(10, 11), dtype=int, compressor=init_compressor(compressor))
233+
g.ones("data", shape=(10, 11), dtype=int, compressor=compressor)
234234
a = g["data"]
235235
assert a.shape == (10, 11)
236236
assert a.dtype == int
237237
assert isinstance(a, Array)
238-
assert isinstance(a[:], xp.ndarray)
238+
assert isinstance(a[:], type(xp.empty(())))
239239
assert (a[:] == 1).all()
240240
assert isinstance(g.meta_array, type(xp.empty(())))

0 commit comments

Comments
 (0)