diff --git a/tests/basics/builtin_minmax.py b/tests/basics/builtin_minmax.py index cee7facf2b..d395d4421b 100644 --- a/tests/basics/builtin_minmax.py +++ b/tests/basics/builtin_minmax.py @@ -35,5 +35,7 @@ print(min([1, 2, 3, 4, 5], default=-1)) print(min([], default=-1)) print(max([1, 2, 3, 4, 5], default=-1)) print(max([], default=-1)) -# Make sure it works with lazy iterables -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 +# byy native codegenerator. +print(min(enumerate([]), default=-10))