mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
Fix by comparing to str(results)) (#1233)
This commit is contained in:
@@ -43,7 +43,7 @@ class TestAsync(PyScriptTest):
|
||||
|
||||
async def get_results():
|
||||
results = await asyncio.gather(*[coro(d) for d in range(3,0,-1)])
|
||||
js.console.log(to_js(results))
|
||||
js.console.log(str(results)) #Compare to string representation, not Proxy
|
||||
js.console.log("DONE")
|
||||
|
||||
asyncio.ensure_future(get_results())
|
||||
@@ -51,7 +51,7 @@ class TestAsync(PyScriptTest):
|
||||
"""
|
||||
)
|
||||
self.wait_for_console("DONE")
|
||||
assert self.console.log.lines[-2:] == ["[3,2,1]", "DONE"]
|
||||
assert self.console.log.lines[-2:] == ["[3, 2, 1]", "DONE"]
|
||||
|
||||
def test_multiple_async(self):
|
||||
self.pyscript_run(
|
||||
|
||||
Reference in New Issue
Block a user