Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Jan 24, 2024
1 parent 3178eeb commit 879b33e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@
# We need to go through and touch them all once to keep everything okay.
pytest_pyodide.runner.INITIALIZE_SCRIPT = """
pyodide.globals.get;
pyodide.runPython("import pyodide_js._api; del pyodide_js");
pyodide._api.importlib.invalidate_caches;
pyodide._api.package_loader.unpack_buffer;
pyodide._api.package_loader.get_dynlibs;
pyodide._api.pyodide_code.eval_code;
pyodide._api.pyodide_code.eval_code_async;
pyodide._api.pyodide_code.find_imports;
pyodide._api.pyodide_ffi.register_js_module;
pyodide._api.pyodide_ffi.unregister_js_module;
pyodide._api.importlib.invalidate_caches;
pyodide._api.package_loader.unpack_buffer;
pyodide._api.package_loader.get_dynlibs;
pyodide.runPython("");
pyodide.pyimport("pyodide.ffi.wrappers").destroy();
pyodide.pyimport("pyodide.http").destroy();
pyodide.pyimport("pyodide_js._api")
pyodide.pyimport("pyodide_js._api");
"""

only_node = pytest.mark.xfail_browsers(
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_pyodide.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ def normalize_tb(t):
["<exec>", "c1"],
["test.html", "b"],
["pyodide.asm.js", "pyimport"],
["importlib/__init__.py", "import_module"],
["_pyodide/_base.py", "pyimport_impl"],
]
assert normalize_tb(res[: len(frames)]) == frames

Expand Down

0 comments on commit 879b33e

Please sign in to comment.