+
Skip to content

Test failure with Python 3.14 alpha 5 #59

Open
@frenzymadness

Description

@frenzymadness

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载