Skip to content

Test failures: Python 3.12-dev: pycode.parser.DefinitionFinder line numbering assertion failures #11436

@jayaddison

Description

@jayaddison

Describe the bug

With recent development builds of Python 3.12, a few parsing-related tests have begun failing. These are built upon Python's tokenizer module and are implemented in the pycode.parser.DefinitionFinder class.

The failures appear to relate to the logic that determines the ending line number for definitions.

Example build logs:

cc @picnixz

How to Reproduce

Minimal repro steps pending; in the meantime, this appears reproducible for most pushes/pull requests that initiate GitHub Actions unit test workflows from this repository.

Environment Information

Python 3.12.0a7+

(sourced from: https://github.com/sphinx-doc/sphinx/actions/runs/4974642742/jobs/8901224179?pr=11423#step:5:10)

Sphinx extensions

N/A

Additional context

Some discussion from today (2023-05-22) in #11435.

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