diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2022-11-05 01:17:22 +0200 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2022-11-05 14:52:57 +0200 |
commit | 44193907eb308930de05deed863fb4d157c5c866 (patch) | |
tree | 349f574b1df7f325cdfa3cfdcf7393baaa767f17 /tests/test_wheelfile.py | |
parent | 6f1608dc1a88f00d2390b9044bd655753f39234c (diff) | |
download | wheel-git-44193907eb308930de05deed863fb4d157c5c866.tar.gz |
Fixed parsing of wheel file names with multiple platform tags0.38.2
Fixes #485.
Diffstat (limited to 'tests/test_wheelfile.py')
-rw-r--r-- | tests/test_wheelfile.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/test_wheelfile.py b/tests/test_wheelfile.py index 9ff5a32..ce134f9 100644 --- a/tests/test_wheelfile.py +++ b/tests/test_wheelfile.py @@ -14,9 +14,16 @@ def wheel_path(tmpdir): return str(tmpdir.join("test-1.0-py2.py3-none-any.whl")) -def test_wheelfile_re(tmpdir): - # Regression test for #208 - path = tmpdir.join("foo-2-py3-none-any.whl") +@pytest.mark.parametrize( + "filename", + [ + "foo-2-py3-none-any.whl", + "foo-2-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", + ], +) +def test_wheelfile_re(filename, tmpdir): + # Regression test for #208 and #485 + path = tmpdir.join(filename) with WheelFile(str(path), "w") as wf: assert wf.parsed_filename.group("namever") == "foo-2" @@ -29,6 +36,7 @@ def test_wheelfile_re(tmpdir): "test-1.0-py2.whl", "test-1.0-py2-none.whl", "test-1.0-py2-none-any", + "test-1.0-py 2-none-any.whl", ], ) def test_bad_wheel_filename(filename): |