Repository navigation
macOS failing on GitHub Actions: test_pythoninfo.GetInfoTests #422
Copy link
Copy link
Open
Description
Activity
- changed the title
[-]macOS failing on GitHub Actions: test_pythoninfo.GetInfoTests.test_venv[/-][+]macOS failing on GitHub Actions: test_pythoninfo.GetInfoTests[/+]on Oct 24, 2025 Recent example on 3.14:
..........FFF.. ====================================================================== FAIL: test_current (test_pythoninfo.GetInfoTests.test_current) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/runner/work/pyperformance/pyperformance/pyperformance/tests/test_pythoninfo.py", line 56, in test_current self.assertEqual(vars(info), vars(expected)) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: {'sys[84 chars]on', prefix='/Library/Frameworks/Python.framew[1215 chars]r\n'} != {'sys[84 chars]on', _base_executable='/Library/Frameworks/Pyt[1211 chars]alse} - {'base_executable': '/Library/Frameworks/Python.framework/Versions/3.14/bin/python3.14', ? ---- + {'base_executable': '/Library/Frameworks/Python.framework/Versions/3.14/bin/python', 'executable_realpath': '/Library/Frameworks/Python.framework/Versions/3.14/bin/python3.14', 'is_venv': False, 'pyc_magic_number': b'+\x0e\r\n', 'stdlib_dir': '/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14', 'sys': namespace(executable='/Library/Frameworks/Python.framework/Versions/3.14/bin/python', - prefix='/Library/Frameworks/Python.framework/Versions/3.14', - exec_prefix='/Library/Frameworks/Python.framework/Versions/3.14', - _stdlib_dir='/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14', _base_executable='/Library/Frameworks/Python.framework/Versions/3.14/bin/python3.14', - base_prefix='/Library/Frameworks/Python.framework/Versions/3.14', - base_exec_prefix='/Library/Frameworks/Python.framework/Versions/3.14', version='3.14.0 (v3.14.0:ebf955df7a8, Oct 7 2025, 08:20:14) ' '[Clang 16.0.0 (clang-1600.0.26.6)]', version_info=sys.version_info(major=3, minor=14, micro=0, releaselevel='final', serial=0), hexversion=51249392, api_version=1013, implementation=namespace(name='cpython', version=sys.version_info(major=3, minor=14, micro=0, releaselevel='final', serial=0)), - platform='darwin'), ? - + platform='darwin', + prefix='/Library/Frameworks/Python.framework/Versions/3.14', + exec_prefix='/Library/Frameworks/Python.framework/Versions/3.14', ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/runner/work/pyperformance/pyperformance/pyperformance/tests/test_pythoninfo.py", line 86, in test_venv self.assertEqual(vars(info), vars(expected)) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: {'sys[21 chars]le='/private/var/folders/q0/wmf37v850txck86cpn[1239 chars]r\n'} != {'sys[21 chars]le='/var/folders/q0/wmf37v850txck86cpnvwm_zw00[1215 chars]True} {'base_executable': '/Library/Frameworks/Python.framework/Versions/3.14/bin/python3.14', 'executable_realpath': '/Library/Frameworks/Python.framework/Versions/3.14/bin/python3.14', 'is_venv': True, 'pyc_magic_number': b'+\x0e\r\n', 'stdlib_dir': '/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14', - 'sys': namespace(executable='/private/var/folders/q0/wmf37v850txck86cpnvwm_zw0000gn/T/tmpwopvtgmd/venv/bin/python3', ? -------- + 'sys': namespace(executable='/var/folders/q0/wmf37v850txck86cpnvwm_zw0000gn/T/tmpwopvtgmd/venv/bin/python3', - prefix='/private/var/folders/q0/wmf37v850txck86cpnvwm_zw0000gn/T/tmpwopvtgmd/venv', - exec_prefix='/private/var/folders/q0/wmf37v850txck86cpnvwm_zw0000gn/T/tmpwopvtgmd/venv', - _stdlib_dir='/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14', _base_executable='/Library/Frameworks/Python.framework/Versions/3.14/bin/python3.14', - base_prefix='/Library/Frameworks/Python.framework/Versions/3.14', - base_exec_prefix='/Library/Frameworks/Python.framework/Versions/3.14', version='3.14.0 (v3.14.0:ebf955df7a8, Oct 7 2025, 08:20:14) ' '[Clang 16.0.0 (clang-1600.0.26.6)]', version_info=(3, 14, 0, 'final', 0), hexversion=51249392, api_version=1013, implementation=namespace(name='cpython', version=(3, 14, 0, 'final', 0)), - platform='darwin'), ? - + platform='darwin', + prefix='/var/folders/q0/wmf37v850txck86cpnvwm_zw0000gn/T/tmpwopvtgmd/venv', + exec_prefix='/var/folders/q0/wmf37v850txck86cpnvwm_zw0000gn/T/tmpwopvtgmd/venv', + base_prefix='/Library/Frameworks/Python.framework/Versions/3.14', + base_exec_prefix='/Library/Frameworks/Python.framework/Versions/3.14', + _stdlib_dir='/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14'), 'sysconfig': namespace(paths=namespace(stdlib='/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14'), is_python_build=False)}
https://github.com/python/pyperformance/actions/runs/18777328410/job/53574859676
- linked a pull request that will close this issuemacOS: Fix `test_pythoninfo.GetInfoTests`, stop marking as experimental #424
on May 12, 2026
Metadata
Metadata
Assignees
Labels
No labels
We should handle the directory issue on GA but as I commented let's create an issue and solve it separately.
In macOS, /var is a symlink to /private/var.
Originally posted by @corona10 in #320 (comment)