File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,8 @@ def sync(
138
138
# coroutines differently. We integrate with the existing Pyodide WebLoop which
139
139
# schedules tasks on the browser's event loop using setTimeout():
140
140
# https://developer.mozilla.org/en-US/docs/Web/API/setTimeout
141
- if IS_WASM :
141
+ if IS_WASM : # pragma: no cover
142
+ # This code path is covered in the Pyodide/WASM CI job.
142
143
current_loop = asyncio .get_running_loop ()
143
144
return current_loop .run_until_complete (coro )
144
145
@@ -182,7 +183,8 @@ def _get_loop() -> asyncio.AbstractEventLoop:
182
183
183
184
The loop will be running on a separate thread.
184
185
"""
185
- if IS_WASM :
186
+ if IS_WASM : # pragma: no cover
187
+ # This case is covered in the Pyodide/WASM CI job.
186
188
raise RuntimeError (
187
189
"Thread-based event loop not available in WASM environment. "
188
190
"Use zarr.api.asynchronous or ensure sync() handles WASM case."
You can’t perform that action at this time.
0 commit comments