Commit 8234ff0a authored by Chris Lamb's avatar Chris Lamb 👀
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
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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),
]


+3 −0
Original line number Diff line number Diff line
@@ -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