diff --git a/src/pyodide.js b/src/pyodide.js index 3a28862ec..b922fdf0e 100644 --- a/src/pyodide.js +++ b/src/pyodide.js @@ -49,7 +49,7 @@ var languagePluginLoader = new Promise((resolve, reject) => { console.log(`Invalid package name or URI '${package_uri}'`); break; } else if (package == package_uri) { - package_uri = 'packages.json'; + package_uri = 'default channel'; } console.log(`Loading ${package} from ${package_uri}`); diff --git a/test/test_python.py b/test/test_python.py index 0e2e9d294..2b3be4367 100644 --- a/test/test_python.py +++ b/test/test_python.py @@ -7,7 +7,8 @@ import pytest def test_init(selenium_standalone): - assert 'Python initialization complete' in selenium_standalone.logs + assert ('Python initialization complete' + in selenium_standalone.logs.splitlines()) assert len(selenium_standalone.driver.window_handles) == 1 @@ -19,7 +20,7 @@ def test_webbrowser(selenium): def test_print(selenium): selenium.run("print('This should be logged')") - assert 'This should be logged' in selenium.logs + assert 'This should be logged' in selenium.logs.splitlines() def test_python2js(selenium):