diff options
author | Rami Ali <flowergrass@users.noreply.github.com> | 2017-01-17 16:03:30 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-17 16:21:17 +1100 |
commit | 5314219f182e8a303e3fa68e2bacca978cb08002 (patch) | |
tree | 882cf1d50b0343b9bb74ea533cd77c39a83efae9 /tests/basics/iter0.py | |
parent | cba723fc8c9b76150efc95e54996ad12a9a8cfc6 (diff) | |
download | micropython-5314219f182e8a303e3fa68e2bacca978cb08002.tar.gz micropython-5314219f182e8a303e3fa68e2bacca978cb08002.zip |
tests/basics: Improve runtime.c test coverage.
Diffstat (limited to 'tests/basics/iter0.py')
-rw-r--r-- | tests/basics/iter0.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/iter0.py b/tests/basics/iter0.py index 6110e8fa58..d20ade7fee 100644 --- a/tests/basics/iter0.py +++ b/tests/basics/iter0.py @@ -4,3 +4,6 @@ try: pass except TypeError: print('TypeError') + +# builtin type that is iterable, calling __next__ explicitly +print(iter(range(4)).__next__()) |