From e99c0297b2c0d5df85afbd3698cbbef4dc0d117b Mon Sep 17 00:00:00 2001 From: Siddhesh Agarwal Date: Thu, 26 Dec 2024 11:48:06 +0530 Subject: [PATCH] fix for #388 --- tests/test_utils.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/test_utils.py b/tests/test_utils.py index 87c86eef..a8cc8d71 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -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):