We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1a968 commit e4f6670Copy full SHA for e4f6670
numcodecs/zarr3.py
@@ -24,6 +24,19 @@
24
25
from __future__ import annotations
26
27
+# Short workaround for skipping the doctest above in a WASM environment
28
+# compiled via Emscripten where threads are not available, and accessing
29
+# the pytest config has no effect and ignoring warnings does not work.
30
+try:
31
+ import pytest
32
+
33
+ from numcodecs.tests.common import is_wasm
34
35
+ if is_wasm:
36
+ pytest.skip("zarr3 doctests not supported in WASM", allow_module_level=True)
37
+except (ImportError, ModuleNotFoundError): # not running tests
38
+ pass
39
40
import asyncio
41
import math
42
from collections.abc import Callable
0 commit comments