remove PY_COMPLETE and the associated message of Python initialization complete (#1373)

* remove PY_COMPLETE

* fix test_multiple_async
This commit is contained in:
Madhur Tandon
2023-04-11 18:59:09 +05:30
committed by GitHub
parent c05195c045
commit f3db6a339c
14 changed files with 2 additions and 73 deletions

View File

@@ -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",