Commit a46c17d8 authored by Romain Casati's avatar Romain Casati
Browse files

Testing numpy import.

parent 1988f90f
......@@ -78,3 +78,11 @@ def test_importables(selenium):
with open(Path(__file__).parent / "data" / "importables.json") as f:
target = json.load(f)
assert importables == target
def test_import_not_hacked(selenium):
data = selenium.run_basthon("import numpy as np; np.pi")
assert data['result']['result']['text/plain'] == "3.141592653589793"
# 0.16.1 shows numpy's warnings (Python 3.8)
if selenium.run_js("return pyodide.version()") != "0.16.1":
assert data['stderr'] == ""
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment