Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion pyperformance/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions pyperformance/tests/test_pythoninfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

base_executable = getattr(sys, "_base_executable", None)
if is_venv:
# XXX There is probably a bug related to venv, since
# sys._base_executable should be different.
if base_executable == sys.executable:
# Indicate that we don't know.
base_executable = None
elif not base_executable:
base_executable = sys.executable

"base_executable (sys)": _BASE_EXECUTABLE,
"version_str (sys)": sys.version,
"version_info (sys)": sys.version_info,
"hexversion (sys)": sys.hexversion,
Expand Down
Loading