Skip to content

Commit 9abbdfa

Browse files
committed
rename wasm test dir to tests
1 parent f48cfa8 commit 9abbdfa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/emscripten_runner.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ async function main() {
8383
const pyodide = await loadPyodide();
8484
const FS = pyodide.FS;
8585
setupStreams(FS, pyodide._module.TTY);
86-
FS.mkdir('/test_dir');
87-
FS.mount(FS.filesystems.NODEFS, {root: path.join(root_dir, 'tests')}, '/test_dir');
88-
FS.chdir('/test_dir');
86+
FS.mkdir('/tests');
87+
FS.mount(FS.filesystems.NODEFS, {root: path.join(root_dir, 'tests')}, '/tests');
88+
FS.chdir('/tests');
8989
await pyodide.loadPackage(['micropip', 'pytest']);
9090
// language=python
9191
errcode = await pyodide.runPythonAsync(`

wasm-preview/worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ async function main() {
9595
const pyodide = await loadPyodide();
9696
const {FS} = pyodide;
9797
setupStreams(FS, pyodide._module.TTY);
98-
FS.mkdir('/test_dir');
99-
FS.chdir('/test_dir');
98+
FS.mkdir('/tests');
99+
FS.chdir('/tests');
100100
await pyodide.loadPackage(['micropip', 'pytest', 'numpy']);
101101
if (pydantic_core_version < '2.0.0') await pyodide.loadPackage(['typing-extensions']);
102102
await pyodide.runPythonAsync(python_code, {globals: pyodide.toPy({pydantic_core_version, tests_zip})});

0 commit comments

Comments
 (0)