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).
This commit is contained in:
Damien George 2015-03-02 17:55:55 +00:00
parent 67c5f89af5
commit fe3da09fa0
2 changed files with 2 additions and 3 deletions

View File

@ -9,8 +9,7 @@ tests = (
[True, False], [True, False],
[False, False], [False, False],
[True, True], [True, True],
(False for i in range(10)), range(10),
(True for i in range(10)),
) )
for test in tests: for test in tests:

View File

@ -6,7 +6,7 @@ tests = (
[0], [0],
[1], [1],
[0, 1, 2], [0, 1, 2],
(i for i in range(10)), range(10),
) )
for test in tests: for test in tests: