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).
pull/1144/head
Damien George 2015-03-02 17:55:55 +00:00
rodzic 67c5f89af5
commit fe3da09fa0
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -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:

Wyświetl plik

@ -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: