🐛 Fix version parsing issue #4362 (#4389)

This commit is contained in:
Andrew O'Shei authored and GitHub committed 2022-02-02 17:33:39 +01:00
1 parent da4f3fb4bb
commit e54bb67187
2 files changed
-3

No files matched your search

-2
View File
@@ -219,8 +219,6 @@ def is_prerelease(version):
def normalize_version(version):
if "-" in version:
version = version[: version.find("-")]
# Debian has the python version set to 2.7.15+ which is not PEP440 compliant (bug 914072)
if version.endswith("+"):
-1
View File
@@ -43,7 +43,6 @@ class VersionUtilTest(unittest.TestCase):
("V1.6.0", "1.6.0"),
("1.6.0+", "1.6.0"),
("\t1.6.0 \r\n", "1.6.0"),
("1.6.0-dev123", "1.6.0"),
)
@ddt.unpack
def test_normalize_version(self, version, expected):