Skip to content

Commit

Permalink
change tests dir for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
derlih committed Apr 20, 2024
1 parent 47107d0 commit 0abd226
Showing 1 changed file with 3 additions and 3 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', 'pytz']);
// language=python
errcode = await pyodide.runPythonAsync(`
Expand Down

0 comments on commit 0abd226

Please sign in to comment.