summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-03-18 10:58:43 +1100
committerDamien George <damien@micropython.org>2025-03-27 11:52:29 +1100
commit994751c25139496eed9c0eb90949ae8fd681e734 (patch)
treedb3d566908aa9e72ad25e33e7afdfd25e34f14c5
parent56e90cb60b028f0a306e6253ad183e6cd4a2b45e (diff)
tests/cpydiff: Remove builtin_next_arg2.py difference.
Because 2-arg `next()` is implemented, and now enabled at the basic feature level. Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--tests/cpydiff/builtin_next_arg2.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/cpydiff/builtin_next_arg2.py b/tests/cpydiff/builtin_next_arg2.py
deleted file mode 100644
index ed9565fe0..000000000
--- a/tests/cpydiff/builtin_next_arg2.py
+++ /dev/null
@@ -1,13 +0,0 @@
-"""
-categories: Modules,builtins
-description: Second argument to next() is not implemented
-cause: MicroPython is optimised for code space.
-workaround: Instead of ``val = next(it, deflt)`` use::
-
- try:
- val = next(it)
- except StopIteration:
- val = deflt
-"""
-
-print(next(iter(range(0)), 42))