Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure with Python 3.14 alpha 5 #59

Open
frenzymadness opened this issue Feb 14, 2025 · 2 comments
Open

Test failure with Python 3.14 alpha 5 #59

frenzymadness opened this issue Feb 14, 2025 · 2 comments

Comments

@frenzymadness
Copy link
Contributor

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.

@alexmojaki
Copy link
Owner

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

@15r10nk
Copy link
Collaborator

15r10nk commented Feb 16, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants