mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
remove PY_COMPLETE and the associated message of Python initialization complete (#1373)
* remove PY_COMPLETE * fix test_multiple_async
This commit is contained in:
@@ -20,13 +20,11 @@ class TestAsync(PyScriptTest):
|
||||
def test_asyncio_ensure_future(self):
|
||||
self.pyscript_run(self.coroutine_script.format(func="ensure_future"))
|
||||
self.wait_for_console("third")
|
||||
assert self.console.log.lines[0] == self.PY_COMPLETE
|
||||
assert self.console.log.lines[-3:] == ["first", "second", "third"]
|
||||
|
||||
def test_asyncio_create_task(self):
|
||||
self.pyscript_run(self.coroutine_script.format(func="create_task"))
|
||||
self.wait_for_console("third")
|
||||
assert self.console.log.lines[0] == self.PY_COMPLETE
|
||||
assert self.console.log.lines[-3:] == ["first", "second", "third"]
|
||||
|
||||
def test_asyncio_gather(self):
|
||||
@@ -79,8 +77,7 @@ class TestAsync(PyScriptTest):
|
||||
"""
|
||||
)
|
||||
self.wait_for_console("b func done")
|
||||
assert self.console.log.lines[0] == self.PY_COMPLETE
|
||||
assert self.console.log.lines[1:] == [
|
||||
assert self.console.log.lines == [
|
||||
"A 0",
|
||||
"B 0",
|
||||
"A 1",
|
||||
|
||||
Reference in New Issue
Block a user