Skip to content

Commit cd3aefe

Browse files
committed
adapt network test to InvalidWheel
1 parent 03c2ea0 commit cd3aefe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_network_lazy_wheel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Iterator
2-
from zipfile import BadZipfile
32

3+
from pip._internal.exceptions import InvalidWheel
44
from pip._vendor.packaging.version import Version
55
from pytest import fixture, mark, raises
66

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

0 commit comments

Comments
 (0)