diff --git a/test/test_version_compare.py b/test/test_version_compare.py index b6f25c52af..a195a027e7 100644 --- a/test/test_version_compare.py +++ b/test/test_version_compare.py @@ -34,6 +34,8 @@ def test_lt(self): assert Version("0.0.0.20190813141303.74dc4d7220e7") < Version( "0.0.0.20200813141303" ) + 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""" @@ -50,6 +52,7 @@ def test_gt(self): assert Version("0.0.0.20200813141303") > Version( "0.0.0.20190813141303.74dc4d7220e7" ) + assert Version("1.1.0m") > Version("1.1.0l.1~deb9u2") def test_error(self): """Make sure 'unknown' and blank strings raise appropriate errors"""