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 c809239 commit 9abe583Copy full SHA for 9abe583
tests/validate_test.py
@@ -3,6 +3,7 @@
3
import zipfile
4
5
import pytest
6
+from packaging.specifiers import SpecifierSet
7
from packaging.tags import parse_tag
8
9
import validate
@@ -87,3 +88,10 @@ def test_top_imports_record(tmp_path):
87
88
89
expected = ["distlib", "_distlib_backend", "distlib_top"]
90
assert validate._top_imports(str(whl)) == expected
91
+
92
93
+def test_pythons_to_check_with_python_versions_constraint():
94
+ tag = parse_tag("py2.py3-none-any")
95
+ constraint = SpecifierSet(">=3.12")
96
+ ret = validate._pythons_to_check(tag, constraint)
97
+ assert ret == ("python3.12", "python3.13")
0 commit comments