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

Stream redirections are persistent.

parent e3f3d9c4
......@@ -23,7 +23,7 @@ importlib.invalidate_caches()
# interpretation system is the Pyodide's interactive console
_console = InteractiveConsole()
_console = InteractiveConsole(persistent_stream_redirection=True)
def locals():
......
......@@ -104,7 +104,8 @@ def test_pandas(selenium):
df.display()
""")
assert result['stderr'] == ""
if selenium.run_js("return pyodide.version()") != "0.16.1":
assert result['stderr'] == ""
assert result['display']['display_type'] == 'multiple'
with open(_test_data / "pandas.html") as f:
assert result['display']['content']['text/html'] == f.read()
......
Markdown is supported
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