Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fe3da09

Browse filesBrowse 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
Copy full SHA for fe3da09

2 files changed

+2-3Lines changed: 2 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/basics/builtin_allany.py‎

Copy file name to clipboardExpand all lines: tests/basics/builtin_allany.py
+1-2Lines 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:
Collapse file

‎tests/basics/builtin_sum.py‎

Copy file name to clipboardExpand all lines: tests/basics/builtin_sum.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.