We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f987b3 commit 5411211Copy full SHA for 5411211
tests/unit/test_models_wheel.py
@@ -3,7 +3,7 @@
3
4
from pip._internal.exceptions import InvalidWheelFilename
5
from pip._internal.models.wheel import Wheel
6
-from pip._internal.utils import compatibility_tags
+from pip._internal.utils import compatibility_tags, deprecation
7
8
9
class TestWheelFile:
@@ -175,5 +175,6 @@ def test_version_underscore_conversion(self) -> None:
175
Test that we convert '_' to '-' for versions parsed out of wheel
176
filenames
177
"""
178
- w = Wheel("simple-0.1_1-py2-none-any.whl")
+ with pytest.warns(deprecation.PipDeprecationWarning):
179
+ w = Wheel("simple-0.1_1-py2-none-any.whl")
180
assert w.version == "0.1-1"
0 commit comments