mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-22 03:35:31 -05:00
split interpreter class (#1218)
* split interpreter class * add new files * add newlines * disable eslint for run * remove usage of interpreter from unit test * delete fakeinterpreter class * fix unit tests * add comments * remove interpreter.ts and pyodide.ts files * suggested changes
This commit is contained in:
@@ -34,7 +34,7 @@ class TestInterpreterAccess(PyScriptTest):
|
||||
|
||||
self.page.add_script_tag(
|
||||
content="""
|
||||
const interface = pyscript.interpreter.interface;
|
||||
const interface = pyscript.interpreter._remote.interface;
|
||||
interface.runPython('print("Interpreter Ran This")');
|
||||
"""
|
||||
)
|
||||
@@ -51,7 +51,7 @@ class TestInterpreterAccess(PyScriptTest):
|
||||
|
||||
self.page.add_script_tag(
|
||||
content="""
|
||||
const interface = pyscript.runtime.interpreter;
|
||||
const interface = pyscript.runtime._remote.interpreter;
|
||||
interface.runPython('print("Interpreter Ran This")');
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user