Skip to content

Line numbers are off by one #2

@blueyed

Description

@blueyed

With the output of Currently in foo/test_bar.py:171: test_a the real line is 172.

IIRC this is because item.location is zero-based in pytest.

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