diff options
Diffstat (limited to 'tests/basics/async_for2.py')
-rw-r--r-- | tests/basics/async_for2.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/basics/async_for2.py b/tests/basics/async_for2.py index 89584fcb10..aad23a3e5a 100644 --- a/tests/basics/async_for2.py +++ b/tests/basics/async_for2.py @@ -1,4 +1,4 @@ -# test waiting within "async for" aiter/anext functions +# test waiting within "async for" __anext__ function import sys if sys.implementation.name == 'micropython': @@ -21,9 +21,8 @@ class ARange: self.cur = 0 self.high = high - async def __aiter__(self): + def __aiter__(self): print('aiter') - print('f returned:', await f(10)) return self async def __anext__(self): |