stack_data icon indicating copy to clipboard operation
stack_data copied to clipboard

Test failure with Python 3.14 alpha 5

Open frenzymadness opened this issue 11 months ago • 3 comments

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.

frenzymadness avatar Feb 14 '25 11:02 frenzymadness

That looks like a problem in executing, cc @15r10nk

alexmojaki avatar Feb 14 '25 12:02 alexmojaki

I don't know. I have not started to test executing with 3.14. But I think I should :smile:

15r10nk avatar Feb 16 '25 15:02 15r10nk

I started to work on the 3.14 support https://github.com/alexmojaki/executing/pull/97

15r10nk avatar Mar 04 '25 07:03 15r10nk