TEST: Add PEP440 specific version comparison

This one was previously failling
This commit is contained in:
Thomas JANVIER 2025-01-27 14:38:57 +01:00 committed by Nyall Dawson
parent 4aa5bc367d
commit 2c581737b6

View File

@ -105,11 +105,10 @@ class TestVersionCompare(QgisTestCase):
b = "1.0.0post1"
self.assertEqual(compareVersions(a, b), 2)
# FIXME: these one will fail ...
# should we use packaging.version.parse ?
# a = "1.0a1"
# b = "1.0.0alpha1"
# self.assertEqual(compareVersions(a, b), 0)
# PEP440 test (failling without packaging)
a = "1.0a1"
b = "1.0.0alpha1"
self.assertEqual(compareVersions(a, b), 0)
if __name__ == "__main__":