-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels