Skip to content

Commit 9a0482b

Browse files
Temporary: skip Zarr's async functionality tests
1 parent 55a2690 commit 9a0482b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

numcodecs/tests/test_zarr3.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ def test_generic_codec_class(store: Store, codec_class: type[numcodecs.zarr3._Nu
7878
np.testing.assert_array_equal(data, a[:, :])
7979

8080

81+
# TODO: undo skips here when we can test async code
82+
@pytest.mark.skipif(is_wasm, reason="testing async code not yet supported in Pyodide/WASM")
8183
@pytest.mark.parametrize(
8284
("codec_class", "codec_config"),
8385
[
@@ -116,6 +118,8 @@ def test_generic_filter(
116118
np.testing.assert_array_equal(data, a[:, :])
117119

118120

121+
# TODO: undo skips here when we can test async code
122+
@pytest.mark.skipif(is_wasm, reason="testing async code not yet supported in Pyodide/WASM")
119123
def test_generic_filter_bitround(store: Store):
120124
data = np.linspace(0, 1, 256, dtype="float32").reshape((16, 16))
121125

@@ -134,6 +138,8 @@ def test_generic_filter_bitround(store: Store):
134138
assert np.allclose(data, a[:, :], atol=0.1)
135139

136140

141+
# TODO: undo skips here when we can test async code
142+
@pytest.mark.skipif(is_wasm, reason="testing async code not yet supported in Pyodide/WASM")
137143
def test_generic_filter_quantize(store: Store):
138144
data = np.linspace(0, 10, 256, dtype="float32").reshape((16, 16))
139145

@@ -152,6 +158,8 @@ def test_generic_filter_quantize(store: Store):
152158
assert np.allclose(data, a[:, :], atol=0.001)
153159

154160

161+
# TODO: undo skips here when we can test async code
162+
@pytest.mark.skipif(is_wasm, reason="testing async code not yet supported in Pyodide/WASM")
155163
def test_generic_filter_packbits(store: Store):
156164
data = np.zeros((16, 16), dtype="bool")
157165
data[0:4, :] = True
@@ -181,6 +189,8 @@ def test_generic_filter_packbits(store: Store):
181189
)
182190

183191

192+
# TODO: undo skips here when we can test async code
193+
@pytest.mark.skipif(is_wasm, reason="testing async code not yet supported in Pyodide/WASM")
184194
@pytest.mark.parametrize(
185195
"codec_class",
186196
[

0 commit comments

Comments
 (0)