diff --git a/tests/test_tox_uv_venv.py b/tests/test_tox_uv_venv.py index 84b2ed2..ed8b0b1 100644 --- a/tests/test_tox_uv_venv.py +++ b/tests/test_tox_uv_venv.py @@ -62,7 +62,7 @@ def other_interpreter_exe() -> pathlib.Path: # pragma: no cover exe = pathlib.Path(sys.executable) base_python: pathlib.Path | None = None - if exe.name == "python" or exe.name == "python3": + if exe.name in {"python", "python3"}: # python -> pythonX.Y ver = sys.version_info base_python = exe.with_name(f"python{ver.major}.{ver.minor}")