From eb36d40077b63c0958a20cb84a7be1ec74a3b214 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Tue, 28 May 2024 21:46:32 +0530 Subject: [PATCH] Restore pytest config options, remove when needed --- .github/workflows/emscripten.yml | 2 ++ pyproject.toml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index 88fc6ff7e6..c672c8f32d 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml @@ -62,6 +62,8 @@ jobs: - name: Run Zarr tests for Pyodide run: | + # Avoid missing asyncio plugin error from pytest, unavailable in Pyodide + if grep -q 'asyncio_mode = "auto"' "pyproject.toml"; then sed '/asyncio_mode = "auto"/d' "pyproject.toml" > temp && mv temp "pyproject.toml"; fi pyodide venv .venv-pyodide source .venv-pyodide/bin/activate python -m pip install dist/*.whl diff --git a/pyproject.toml b/pyproject.toml index da57fdbea6..48eb5b1544 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",