From 5887083e15aadb3349a68c78c88921696ad4e6e1 Mon Sep 17 00:00:00 2001 From: maurycy <5383+maurycy@users.noreply.github.com> Date: Sat, 25 Oct 2025 00:20:38 +0200 Subject: [PATCH 1/4] os.path.realpath venv root --- pyperformance/tests/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: From a5233f69871d0059c5b986af95f102edb6c1212e Mon Sep 17 00:00:00 2001 From: maurycy <5383+maurycy@users.noreply.github.com> Date: Sat, 25 Oct 2025 00:21:03 +0200 Subject: [PATCH 2/4] rm experimental from macos --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8535da4f..1de390d9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -77,4 +77,3 @@ jobs: - name: Run Tests id: pyperformance run: python -u -m pyperformance.tests - continue-on-error: ${{ matrix.experimental }} From 983903cb80a63359e91f08a49d1860f32f3d8e4b Mon Sep 17 00:00:00 2001 From: maurycy <5383+maurycy@users.noreply.github.com> Date: Sat, 25 Oct 2025 00:47:40 +0200 Subject: [PATCH 3/4] rm experimental from macos --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1de390d9..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 @@ -77,3 +77,4 @@ jobs: - name: Run Tests id: pyperformance run: python -u -m pyperformance.tests + continue-on-error: ${{ matrix.experimental }} From 666225a40b33332825d3ab5d421414446ee7abc8 Mon Sep 17 00:00:00 2001 From: maurycy <5383+maurycy@users.noreply.github.com> Date: Sat, 25 Oct 2025 00:51:01 +0200 Subject: [PATCH 4/4] this? --- pyperformance/tests/test_pythoninfo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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,