From 0abd22646c1f9baaa8f06bad36822f80087dcd15 Mon Sep 17 00:00:00 2001 From: Dmitry Erlikh Date: Sat, 20 Apr 2024 07:18:06 +0200 Subject: [PATCH] change tests dir for wasm --- tests/emscripten_runner.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/emscripten_runner.js b/tests/emscripten_runner.js index 054a88380..6469fb199 100644 --- a/tests/emscripten_runner.js +++ b/tests/emscripten_runner.js @@ -83,9 +83,9 @@ async function main() { const pyodide = await loadPyodide(); const FS = pyodide.FS; setupStreams(FS, pyodide._module.TTY); - FS.mkdir('/test_dir'); - FS.mount(FS.filesystems.NODEFS, {root: path.join(root_dir, 'tests')}, '/test_dir'); - FS.chdir('/test_dir'); + FS.mkdir('/tests'); + FS.mount(FS.filesystems.NODEFS, {root: path.join(root_dir, 'tests')}, '/tests'); + FS.chdir('/tests'); await pyodide.loadPackage(['micropip', 'pytest', 'pytz']); // language=python errcode = await pyodide.runPythonAsync(`