Skip to content

Commit

Permalink
rename wasm test dir to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Jun 25, 2024
1 parent f48cfa8 commit 9abbdfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/emscripten_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
// language=python
errcode = await pyodide.runPythonAsync(`
Expand Down
4 changes: 2 additions & 2 deletions wasm-preview/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ async function main() {
const pyodide = await loadPyodide();
const {FS} = pyodide;
setupStreams(FS, pyodide._module.TTY);
FS.mkdir('/test_dir');
FS.chdir('/test_dir');
FS.mkdir('/tests');
FS.chdir('/tests');
await pyodide.loadPackage(['micropip', 'pytest', 'numpy']);
if (pydantic_core_version < '2.0.0') await pyodide.loadPackage(['typing-extensions']);
await pyodide.runPythonAsync(python_code, {globals: pyodide.toPy({pydantic_core_version, tests_zip})});
Expand Down

0 comments on commit 9abbdfa

Please sign in to comment.