Skip to content

Commit

Permalink
install hypothesis, crash
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Jul 5, 2022
1 parent 8b4a2a7 commit 782b64f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/emscripten_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function setupStreams(FS, TTY){
async function main() {
const wheelName = await findWheel(distDir);
const wheelURL = `file:${distDir}/${wheelName}`;

let errcode = 0;
try {
pyodide = await loadPyodide();
const FS = pyodide.FS;
Expand All @@ -93,16 +93,17 @@ async function main() {
await pyodide.loadPackage(['micropip', 'pytest', 'pytz']);
const micropip = pyodide.pyimport('micropip');
await micropip.install('dirty-equals');
await micropip.install('hypothesis');
await micropip.install('pytest-speed');
await micropip.install(wheelURL);
const pytest = pyodide.pyimport('pytest');
FS.chdir("/test_dir");
errcode = pytest.main();
process.exit(errcode);
} catch (e) {
console.error(e);
process.exit(1);
}
process.exit(errcode);
}

main();

0 comments on commit 782b64f

Please sign in to comment.