Skip to content

Commit

Permalink
Re-add tests for Unicode file name parsing (#863)
Browse files Browse the repository at this point in the history
This reverts d3388aa .
  • Loading branch information
Siddhesh-Agarwal authored Jan 8, 2025
1 parent 2256ed4 commit 9375ec2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,20 @@ def test_canonicalize_version_no_strip_trailing_zero(version):
(1000, "abc"),
{Tag("py3", "none", "any")},
),
(
"foo_bár-1.0-py3-none-any.whl",
"foo-bár",
Version("1.0"),
(),
{Tag("py3", "none", "any")},
),
(
"foo_bár-1.0-1000-py3-none-any.whl",
"foo-bár",
Version("1.0"),
(1000, ""),
{Tag("py3", "none", "any")},
),
],
)
def test_parse_wheel_filename(filename, name, version, build, tags):
Expand Down

0 comments on commit 9375ec2

Please sign in to comment.