Skip to content

Commit eb36d40

Browse files
Restore pytest config options, remove when needed
1 parent c8cb38b commit eb36d40

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/emscripten.yml

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
6363
- name: Run Zarr tests for Pyodide
6464
run: |
65+
# Avoid missing asyncio plugin error from pytest, unavailable in Pyodide
66+
if grep -q 'asyncio_mode = "auto"' "pyproject.toml"; then sed '/asyncio_mode = "auto"/d' "pyproject.toml" > temp && mv temp "pyproject.toml"; fi
6567
pyodide venv .venv-pyodide
6668
source .venv-pyodide/bin/activate
6769
python -m pip install dist/*.whl

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ minversion = "7"
249249
testpaths = ["tests"]
250250
log_cli_level = "INFO"
251251
xfail_strict = true
252-
# asyncio_mode = "auto"
252+
# Doesn't work under WASM, remove when running Pyodide test suite
253+
asyncio_mode = "auto"
253254
doctest_optionflags = [
254255
"NORMALIZE_WHITESPACE",
255256
"ELLIPSIS",

0 commit comments

Comments
 (0)