Skip to content

Commit fe3da09

Browse files
committed
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).
1 parent 67c5f89 commit fe3da09

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

tests/basics/builtin_allany.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
[True, False],
1010
[False, False],
1111
[True, True],
12-
(False for i in range(10)),
13-
(True for i in range(10)),
12+
range(10),
1413
)
1514

1615
for test in tests:

tests/basics/builtin_sum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[0],
77
[1],
88
[0, 1, 2],
9-
(i for i in range(10)),
9+
range(10),
1010
)
1111

1212
for test in tests:

0 commit comments

Comments
 (0)