Skip to content

Commit

Permalink
fix wasm preview
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Feb 5, 2025
1 parent e89bd8c commit 3fdad6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wasm-preview/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def main(tests_zip: str, tag_name: str):

print(f'Mounted {count} test files, installing dependencies...')

await micropip.install(['dirty-equals', 'hypothesis', 'pytest-speed', 'pytest-mock', pydantic_core_wheel, 'tzdata'])
await micropip.install(['dirty-equals', 'hypothesis', 'pytest-speed', 'pytest-mock', 'tzdata', 'inline-snapshot', pydantic_core_wheel])
importlib.invalidate_caches()

# print('installed packages:')
Expand Down
2 changes: 1 addition & 1 deletion wasm-preview/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function main() {
setupStreams(FS, pyodide._module.TTY);
FS.mkdir('/test_dir');
FS.chdir('/test_dir');
await pyodide.loadPackage(['micropip', 'pytest', 'numpy']);
await pyodide.loadPackage(['micropip', 'pytest', 'numpy', 'pygments']);
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})});
post();
Expand Down

0 comments on commit 3fdad6d

Please sign in to comment.