1 parent f380904 commit 5599586Copy full SHA for 5599586
1 file changed
tests/basics/builtin_minmax.py
@@ -35,5 +35,7 @@
35
print(min([], default=-1))
36
print(max([1, 2, 3, 4, 5], default=-1))
37
print(max([], default=-1))
38
-# Make sure it works with lazy iterables
39
-print(min((i for i in []), default=-10))
+# make sure it works with lazy iterables
+# can't use Python generators here, as they're not supported
40
+# byy native codegenerator.
41
+print(min(enumerate([]), default=-10))
0 commit comments