mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 03:05:38 -05:00
Remove 'Implicit Async', Don't Await runtime.run() (#928)
* Revert to runPython instead of await runPythonAsync * "Implicit Coroutines" are no longer permitted in py-script tags * Tests added for the above * xfail test_importmap (See #938)
This commit is contained in:
@@ -63,13 +63,9 @@ class TestPyRepl(PyScriptTest):
|
||||
</py-repl>
|
||||
"""
|
||||
)
|
||||
self.page.wait_for_selector("#runButton")
|
||||
self.page.keyboard.press("Shift+Enter")
|
||||
|
||||
# when we use locator('button').click() the message appears
|
||||
# immediately, with keyboard.press we need to wait for it. I don't
|
||||
# really know why it has a different behavior, I didn't investigate
|
||||
# further.
|
||||
self.wait_for_console("hello world")
|
||||
assert self.console.log.lines == [self.PY_COMPLETE, "hello world"]
|
||||
|
||||
def test_display(self):
|
||||
self.pyscript_run(
|
||||
|
||||
Reference in New Issue
Block a user