Skip to content

Commit 5599586

Browse files
committed
tests/builtin_minmax: Make compatible with @Native codegen.
1 parent f380904 commit 5599586

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/basics/builtin_minmax.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,7 @@
3535
print(min([], default=-1))
3636
print(max([1, 2, 3, 4, 5], default=-1))
3737
print(max([], default=-1))
38-
# Make sure it works with lazy iterables
39-
print(min((i for i in []), default=-10))
38+
# make sure it works with lazy iterables
39+
# can't use Python generators here, as they're not supported
40+
# byy native codegenerator.
41+
print(min(enumerate([]), default=-10))

0 commit comments

Comments
 (0)