Browse Source

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 10 years ago
parent
commit
fe3da09fa0
  1. 3
      tests/basics/builtin_allany.py
  2. 2
      tests/basics/builtin_sum.py

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

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

Loading…
Cancel
Save