stack_data
stack_data copied to clipboard
Test failure with Python 3.14 alpha 5
test_example fails when run with Python 3.14 alpha 5. I've tried to debug it and it seems that the problem is in the example called blank_visible.
The expected output is:
Traceback (most recent call last):
File "formatter_example.py", line 85, in blank_lines
79 | def blank_lines():
80 | a = [1, 2, 3]
81 |
82 | length = len(a)
83 |
84 |
--> 85 | return a[length]
^^^^^^^^^
IndexError: list index out of range
The real one is:
Traceback (most recent call last):
File "formatter_example.py", line 85, in blank_lines
79 | def blank_lines():
80 | a = [1, 2, 3]
81 |
82 | length = len(a)
83 |
84 |
--> 85 | return a[length]
IndexError: list index out of range
I'm not sure why the line with ^^^^ is missing. When I try to run the same code in 3.13 and 3.1a5, the formatting of the exceptions seems to be identical.
That looks like a problem in executing, cc @15r10nk
I don't know. I have not started to test executing with 3.14. But I think I should :smile:
I started to work on the 3.14 support https://github.com/alexmojaki/executing/pull/97