diff --git a/tests/fixtures/distributions/demo_metadata_version_23-0.1.0-py2.py3-none-any.whl b/tests/fixtures/distributions/demo_metadata_version_23-0.1.0-py2.py3-none-any.whl new file mode 100644 index 00000000000..91691fd7028 Binary files /dev/null and b/tests/fixtures/distributions/demo_metadata_version_23-0.1.0-py2.py3-none-any.whl differ diff --git a/tests/inspection/test_info.py b/tests/inspection/test_info.py index ef94aee43db..b986043924e 100644 --- a/tests/inspection/test_info.py +++ b/tests/inspection/test_info.py @@ -179,6 +179,17 @@ def test_info_from_wheel(demo_wheel: Path) -> None: assert info._source_url == demo_wheel.resolve().as_posix() +def test_info_from_wheel_metadata_version_23(fixture_dir: FixtureDirGetter) -> None: + path = ( + fixture_dir("distributions") + / "demo_metadata_version_23-0.1.0-py2.py3-none-any.whl" + ) + info = PackageInfo.from_wheel(path) + demo_check_info(info) + assert info._source_type == "file" + assert info._source_url == path.resolve().as_posix() + + def test_info_from_wheel_metadata(demo_wheel_metadata: RawMetadata) -> None: info = PackageInfo.from_metadata(demo_wheel_metadata) demo_check_info(info)