Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed Oct 25, 2023
1 parent 4bc8636 commit cd0d2de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conans/model/version_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __lt__(self, other):
# There's a possibility of getting here while validating if a range is non-void
# by comparing >= & <= for lower limit <= upper limit
elif other.operator == "<=":
return True
return self.display_version < other.display_version
else:
return self.display_version.pre is not None
return False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# One lower limit, one upper
['>=1.0', "<2.0", ">=1.0 <2.0"],
['>=1', '<=1', ">=1 <=1"],
[">=1", "<=1-", ">=1 <=1-"],
[">=1-", "<=1", ">=1- <=1"],
# Two lower, one upper
['>=1.0', ">1.0 <2.0", ">1.0 <2.0"],
Expand Down Expand Up @@ -64,6 +63,7 @@ def test_range_intersection(range1, range2, result):
['>1.0', "<1.0"],
['>=1.0', "<1.0"],
['>1.0', "<=1.0"],
[">=1", "<=1-"],
['>1.0 <2.0', ">2.0"],
['>1.0 <2.0', "<1.0"],
['>1.0 <2.0', ">3.0 <4.0"],
Expand Down

0 comments on commit cd0d2de

Please sign in to comment.