Skip to content

Commit

Permalink
adapt network test to InvalidWheel
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Oct 17, 2021
1 parent a438609 commit e51d51e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_network_lazy_wheel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Iterator
from zipfile import BadZipfile

from pip._internal.exceptions import InvalidWheel
from pip._vendor.packaging.version import Version
from pytest import fixture, mark, raises

Expand Down Expand Up @@ -62,5 +62,5 @@ def test_dist_from_wheel_url_no_range(
@mark.network
def test_dist_from_wheel_url_not_zip(session: PipSession) -> None:
"""Test handling with the given URL does not point to a ZIP."""
with raises(BadZipfile):
with raises(InvalidWheel):
dist_from_wheel_url("python", "https://www.python.org/", session)

0 comments on commit e51d51e

Please sign in to comment.