Skip to content

Commit 2555235

Browse files
committed
check that <= is also detected
1 parent 8171549 commit 2555235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

minimum_versions/tests/test_environments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def test_parse_spec(self, name, version_text, expected_spec, expected_warnings):
235235
assert actual_name == name
236236
assert actual_warnings == expected_warnings
237237

238-
@pytest.mark.parametrize("version_text", ("~1.3", "^2.1", "<1.1"))
238+
@pytest.mark.parametrize("version_text", ("~1.3", "^2.1", "<1.1", "<=2025.01"))
239239
def test_parse_spec_error(self, version_text):
240240
with pytest.raises(ValueError, match="Unsupported version spec: .*"):
241241
environments.pixi.parse_spec("package", version_text)

0 commit comments

Comments
 (0)