Commit ab1a13cd authored by Damien George's avatar Damien George

leon: Update CORE_BASICS/async_xxx tests to work without attrtuple.

parent 22ffd72e
# test await expression
import sys
if sys.implementation.name == 'micropython':
if not hasattr(sys.implementation, 'name') or sys.implementation.name == 'micropython':
# uPy allows normal generators to be awaitables
coroutine = lambda f: f
else:
......
# test waiting within "async for" aiter/anext functions
import sys
if sys.implementation.name == 'micropython':
if not hasattr(sys.implementation, 'name') or sys.implementation.name == 'micropython':
# uPy allows normal generators to be awaitables
coroutine = lambda f: f
else:
......
# test waiting within async with enter/exit functions
import sys
if sys.implementation.name == 'micropython':
if not hasattr(sys.implementation, 'name') or sys.implementation.name == 'micropython':
# uPy allows normal generators to be awaitables
coroutine = lambda f: f
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment