Skip to content

wheel 0.46.3: Inconsistent @ spacing between test expectation and implementation in test_pkginfo_to_metadata #677

@wangmingyu84

Description

@wangmingyu84

The test test_pkginfo_to_metadataexpects "pip @ https://..."(space before @) but the _convert_requirementsfunction produces "pip@ https://..."(space after @). This inconsistency causes test failure.
Environment:
wheel 0.46.3
Python 3.14.2

Minimal reproduction:
/usr/lib/python3-wheel/ptest# python3 -m pytest tests/test_metadata.py::test_pkginfo_to_metadata -v
......

At index 3 diff: ('Requires-Dist', 'pip@ https://github.com/pypa/pip/archive/1.3.1.zip')
!= ('Requires-Dist', 'pip @ https://github.com/pypa/pip/archive/1.3.1.zip').
......

Question:
Should the implementation be fixed to match the test (space before @), or should the test be fixed to match the implementation (space after @)?

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