1 parent
da4f3fb4bb
commit
e54bb67187
2 files changed
-3
No files matched your search
@@ -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("+"):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user