Skip to content

Commit

Permalink
Restore pytest config options, remove when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed May 28, 2024
1 parent c8cb38b commit f212ec7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ jobs:
- name: Run Zarr tests for Pyodide
run: |
# Avoid missing asyncio plugin error from pytest, unavailable in Pyodide
pyodide venv .venv-pyodide
source .venv-pyodide/bin/activate
python -m pip install dist/*.whl
python -m pip install pytest pytest-cov
if grep -q 'asyncio_mode = "auto"' pyproject.toml; then sed -i '' -e '/asyncio_mode = "auto"/d' pyproject.toml; fi
python -m pytest -v --cov=zarr --cov-config=pyproject.toml
- name: Upload Pyodide wheel artifact for debugging
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ minversion = "7"
testpaths = ["tests"]
log_cli_level = "INFO"
xfail_strict = true
# asyncio_mode = "auto"
# Doesn't work under WASM, remove when running Pyodide test suite
asyncio_mode = "auto"
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"ELLIPSIS",
Expand Down

0 comments on commit f212ec7

Please sign in to comment.