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 274bdc9 commit bca92d5Copy full SHA for bca92d5
tests/utils/test_python_manager.py
@@ -51,10 +51,11 @@ def test_python_get_system_python() -> None:
51
52
def test_python_get_preferred_default(config: Config) -> None:
53
python = Python.get_preferred_python(config)
54
+ version_len = 3 if sys.version_info[3] == "final" else 5
55
56
assert python.executable == Path(sys.executable)
57
assert python.version == Version.parse(
- ".".join(str(v) for v in sys.version_info[:3])
58
+ ".".join(str(v) for v in sys.version_info[:version_len])
59
)
60
61
0 commit comments