mirror of https://github.com/pypa/pip
make linters happy
This commit is contained in:
parent
58996b5ddb
commit
2e67986782
|
@ -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,
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue