Skip to content

Commit

Permalink
TEST: Add PEP440 specific version comparison
Browse files Browse the repository at this point in the history
This one was previously failling
  • Loading branch information
T4mmi committed Jan 27, 2025
1 parent f6e05b6 commit 74ab312
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/src/python/test_versioncompare.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,10 @@ def testCompareVersions(self):
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__":
Expand Down

0 comments on commit 74ab312

Please sign in to comment.