diff options
author | Damien George <damien.p.george@gmail.com> | 2015-03-02 17:55:55 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-03-02 17:55:55 +0000 |
commit | fe3da09fa095499095219b134d018ca56e61e0f1 (patch) | |
tree | f2300e2f13f5f1952c5286345f4ab4878b3feaec | |
parent | 67c5f89af539e0778155dcd35b58c32af64debec (diff) | |
download | micropython-fe3da09fa095499095219b134d018ca56e61e0f1.tar.gz micropython-fe3da09fa095499095219b134d018ca56e61e0f1.zip |
tests: Use range as iterable instead of list comprehension.
So that navite emitter passes (comprehensions use yield which is not yet
supported by native emitter).
-rw-r--r-- | tests/basics/builtin_allany.py | 3 | ||||
-rw-r--r-- | tests/basics/builtin_sum.py | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/basics/builtin_allany.py b/tests/basics/builtin_allany.py index 7eb8bc6afe..07052e42fe 100644 --- a/tests/basics/builtin_allany.py +++ b/tests/basics/builtin_allany.py @@ -9,8 +9,7 @@ tests = ( [True, False], [False, False], [True, True], - (False for i in range(10)), - (True for i in range(10)), + range(10), ) for test in tests: diff --git a/tests/basics/builtin_sum.py b/tests/basics/builtin_sum.py index 1512a333f6..e45b82c358 100644 --- a/tests/basics/builtin_sum.py +++ b/tests/basics/builtin_sum.py @@ -6,7 +6,7 @@ tests = ( [0], [1], [0, 1, 2], - (i for i in range(10)), + range(10), ) for test in tests: |