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 254cd43 commit 2500a69Copy full SHA for 2500a69
tests/test_tox_uv_venv.py
@@ -62,12 +62,12 @@ def other_interpreter_exe() -> pathlib.Path: # pragma: no cover
62
63
exe = pathlib.Path(sys.executable)
64
base_python: pathlib.Path | None = None
65
- if exe.name == "python":
+ if exe.name in {"python", "python3"}:
66
# python -> pythonX.Y
67
ver = sys.version_info
68
base_python = exe.with_name(f"python{ver.major}.{ver.minor}")
69
elif exe.name[-1].isdigit():
70
- # python X[.Y] -> python
+ # python X.Y -> python
71
base_python = exe.with_name(exe.stem[:-1])
72
elif exe.suffix == ".exe":
73
# python.exe <-> pythonw.exe
0 commit comments