Files
micropython/tests/basics/try_finally_break2.py.exp
Alessandro Gatti e66a1a3f4a tests/basics/try_finally: Fix try/finally flow tests under CPython 3.14.
This commit fixes tests that will always fail when using CPython 3.14
to get a known-good output to compare MicroPython's behaviour against.

Starting from CPython 3.14, statements inside a `finally` block that
will prevent the execution flow to reach the block's last statement will
raise a SyntaxWarning.  That text would end up in the comparison data
and thus make known-good tests fail.

Given that those tests explicitly exercise flow control interruptions
in finally blocks, there is no real workaround that can be applied to
the tests themselves.  Therefore those tests will now check
MicroPython's behaviour against expected output files recorded from
the tests' output with CPython 3.11.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
2026-01-15 20:53:26 +01:00

18 lines
133 B
Plaintext

4 0 0 1
4 0 0 2
4 0 0 3
4 0 0 4
4 1 0 1
4 1 0 2
4 1 0 3
4 1 0 4
4 2 0 1
4 2 0 2
4 2 0 3
4 2 0 4
4 3 0 1
4 3 0 2
4 3 0 3
4 3 0 4
None