mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
TEST: Add PEP440 specific version comparison
This one was previously failling
This commit is contained in:
parent
4aa5bc367d
commit
2c581737b6
@ -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__":
|
||||
|
Loading…
x
Reference in New Issue
Block a user