We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 372fb7d commit ed0a3c6Copy full SHA for ed0a3c6
test/test_version_compare.py
@@ -34,6 +34,8 @@ def test_lt(self):
34
assert Version("0.0.0.20190813141303.74dc4d7220e7") < Version(
35
"0.0.0.20200813141303"
36
)
37
+ assert Version("1.1.0l.1~deb9u2") < Version("2.0.0-1+deb9u1")
38
+ assert Version("1.1.0l.1~deb9u2") < Version("1.1.0m")
39
40
def test_gt(self):
41
"""Make sure > works between versions, including some with unusual version schemes"""
@@ -50,6 +52,7 @@ def test_gt(self):
50
52
assert Version("0.0.0.20200813141303") > Version(
51
53
"0.0.0.20190813141303.74dc4d7220e7"
54
55
+ assert Version("1.1.0m") > Version("1.1.0l.1~deb9u2")
56
57
def test_error(self):
58
"""Make sure 'unknown' and blank strings raise appropriate errors"""
0 commit comments