diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8535da4f..b6f9ce1e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,7 +47,7 @@ jobs: experimental: false - os: macos-latest python: "3.14" - experimental: true + experimental: false - os: windows-latest python: "3.14" experimental: false diff --git a/pyperformance/tests/__init__.py b/pyperformance/tests/__init__.py index 2aa40f21..f80f9abd 100644 --- a/pyperformance/tests/__init__.py +++ b/pyperformance/tests/__init__.py @@ -84,7 +84,8 @@ def cleanup(): onfail="raise", verbose=verbose, ) - return root, _resolve_venv_python(root), cleanup + venv_root = os.path.realpath(root) + return venv_root, _resolve_venv_python(venv_root), cleanup class CleanupFile: diff --git a/pyperformance/tests/test_pythoninfo.py b/pyperformance/tests/test_pythoninfo.py index a91da636..07878d2f 100644 --- a/pyperformance/tests/test_pythoninfo.py +++ b/pyperformance/tests/test_pythoninfo.py @@ -7,11 +7,12 @@ from pyperformance import _pythoninfo, tests IS_VENV = sys.prefix != sys.base_prefix +_BASE_EXECUTABLE = getattr(sys, "_base_executable", None) CURRENT = { "executable (sys)": sys.executable, "executable (sys;realpath)": os.path.realpath(sys.executable), - "base_executable": sys.executable, - "base_executable (sys)": getattr(sys, "_base_executable", None), + "base_executable": _BASE_EXECUTABLE or sys.executable, + "base_executable (sys)": _BASE_EXECUTABLE, "version_str (sys)": sys.version, "version_info (sys)": sys.version_info, "hexversion (sys)": sys.hexversion,