From fe3da09fa095499095219b134d018ca56e61e0f1 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 2 Mar 2015 17:55:55 +0000 Subject: [PATCH] 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). --- tests/basics/builtin_allany.py | 3 +-- 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: