diff --git a/test/test_version_compare.py b/test/test_version_compare.py index 8e521ba2f0..97687790be 100644 --- a/test/test_version_compare.py +++ b/test/test_version_compare.py @@ -31,6 +31,8 @@ def test_lt(self): assert Version("9.10") < Version("9.10.post") assert Version("5.3.9") < Version("5.4") assert Version("2.0.0") < Version("2.0.0-1+deb9u1") + assert Version("1.1.0l.1~deb9u2") < Version("2.0.0-1+deb9u1") + assert Version("1.1.0l.1~deb9u2") < Version("1.1.0m") def test_gt(self): """Make sure > works between versions, including some with unusual version schemes""" @@ -44,6 +46,7 @@ def test_gt(self): assert Version("9.10.post") > Version("9.10") assert Version("5.5") > Version("5.4.1") assert Version("2.0.0-1+deb9u1") > Version("2.0.0") + assert Version("1.1.0m") > Version("1.1.0l.1~deb9u2") def test_error(self): """Make sure 'unknown' and blank strings raise appropriate errors"""