Skip to content

Commit 9375ec2

Browse files
Re-add tests for Unicode file name parsing (#863)
This reverts d3388aa .
1 parent 2256ed4 commit 9375ec2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_utils.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,20 @@ def test_canonicalize_version_no_strip_trailing_zero(version):
123123
(1000, "abc"),
124124
{Tag("py3", "none", "any")},
125125
),
126+
(
127+
"foo_bár-1.0-py3-none-any.whl",
128+
"foo-bár",
129+
Version("1.0"),
130+
(),
131+
{Tag("py3", "none", "any")},
132+
),
133+
(
134+
"foo_bár-1.0-1000-py3-none-any.whl",
135+
"foo-bár",
136+
Version("1.0"),
137+
(1000, ""),
138+
{Tag("py3", "none", "any")},
139+
),
126140
],
127141
)
128142
def test_parse_wheel_filename(filename, name, version, build, tags):

0 commit comments

Comments
 (0)