We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57f9456 commit f8d3680Copy full SHA for f8d3680
testmod.py
@@ -604,7 +604,7 @@ async def test_os_api(api):
604
with assert_takes_time(1.5, 3):
605
async with api.os.captureEvent('timer') as timer_queue:
606
timer_id = await api.os.startTimer(2)
607
- async for etid, in timer_queue:
+ async for etid, *_ in timer_queue:
608
if etid == timer_id:
609
await api.print('Timer reached')
610
break
@@ -637,7 +637,7 @@ async def test_os_api(api):
637
assert isinstance(await api.os.time(), (int, float))
638
assert isinstance(await api.os.clock(), (int, float))
639
640
- # TODO: run method
+ assert await api.os.run({}, 'rom/programs/fun/hello.lua') is True
641
642
await api.print('Test finished successfully')
643
0 commit comments