make linters happy

This commit is contained in:
Lukas Juhrich 2021-10-17 22:23:54 +02:00
parent 58996b5ddb
commit 2e67986782
2 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
from typing import Iterator
from pip._internal.exceptions import InvalidWheel
from pip._vendor.packaging.version import Version
from pytest import fixture, mark, raises
from pip._internal.exceptions import InvalidWheel
from pip._internal.network.lazy_wheel import (
HTTPRangeRequestUnsupported,
dist_from_wheel_url,

View File

@ -252,9 +252,9 @@ def test_wheel_root_is_purelib(text: str, expected: bool) -> None:
assert wheel.wheel_root_is_purelib(message_from_string(text)) == expected
def test_dist_from_broken_wheel_fails(data) -> None:
def test_dist_from_broken_wheel_fails(data: TestData) -> None:
from pip._internal.exceptions import InvalidWheel
from pip._internal.metadata import get_wheel_distribution, FilesystemWheel
from pip._internal.metadata import FilesystemWheel, get_wheel_distribution
package = data.packages.joinpath("corruptwheel-1.0-py2.py3-none-any.whl")
with pytest.raises(InvalidWheel):