Skip to content
Snippets Groups Projects
Commit 8234ff0a authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Correct longstanding issue where many ">"-based version tests used in...

Correct longstanding issue where many ">"-based version tests used in conditional fixtures were broken. Thanks, Colin Watson. (Closes: Debian:#1102658)
parent d930e990
No related branches found
No related tags found
No related merge requests found
Pipeline #849328 passed with warnings
......@@ -151,6 +151,9 @@ cases = [
("0^", "0", +1),
("0^", "0^", 0),
("0^", "0^~", 1),
# OpenSSH (#1102658)
("10.0p1", "9.7p1", 1),
("9.7p1", "10.0p1", -1),
]
......
......@@ -101,3 +101,6 @@ class Version(str):
def __lt__(self, other):
return self._cmp(other) < 0
def __gt__(self, other):
return self._cmp(other) > 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment