macOS failing on GitHub Actions: test_pythoninfo.GetInfoTests

Open
#422 1 comment 0 reactions 0 assignees View on GitHub

@maurycy is already working on this.

Since Oct 24, 2025.

  • #424 by @maurycy — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
github-actions, python

Research direction

Check pull request #424 first, since it is already open for this issue. Otherwise start with pyperformance/tests/test_pythoninfo.py at test_venv and compare the macOS GitHub Actions failure with the expected values; done means the test passes on macOS without the /var versus /private/var discrepancy.

Written by the indexing model from the issue text.

Description

We should handle the directory issue on GA but as I commented let's create an issue and solve it separately.

FAIL: test_venv (test_pythoninfo.GetInfoTests.test_venv)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/work/pyperformance/pyperformance/pyperformance/tests/test_pythoninfo.py", line 87, in test_venv
    self.assertEqual(vars(info), vars(expected))
AssertionError: {'sys[21 chars]le='/private/var/folders/24/8k48jl6d249_n_qfxw[1240 chars]r\n'} != {'sys[21 chars]le='/var/folders/24/8k48jl6d249_n_qfxwsl6xvm00[1216 chars]True}
  {'base_executable': '/Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12',
   'executable_realpath': '/Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12',
   'is_venv': True,
   'pyc_magic_number': b'\xcb\r\r\n',
   'stdlib_dir': '/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12',
-  'sys': namespace(executable='/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmprglvf6f4/venv/bin/python3',
?                               --------

+  'sys': namespace(executable='/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmprglvf6f4/venv/bin/python3',
-                   prefix='/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmprglvf6f4/venv',
-                   exec_prefix='/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmprglvf6f4/venv',
-                   _stdlib_dir='/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12',
                    _base_executable='/Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12',
-                   base_prefix='/Library/Frameworks/Python.framework/Versions/3.12',
-                   base_exec_prefix='/Library/Frameworks/Python.framework/Versions/3.12',
                    version='3.12.0 (v3.12.0:0fb18b02c8, Oct  2 2023, 09:45:56) '
                            '[Clang 13.0.0 (clang-1300.0.29.30)]',
                    version_info=(3, 12, 0, 'final', 0),
                    hexversion=51118320,
                    api_version=1013,
                    implementation=namespace(name='cpython',
                                             version=(3, 12, 0, 'final', 0)),
-                   platform='darwin'),
?                                    -

+                   platform='darwin',
+                   prefix='/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmprglvf6f4/venv',
+                   exec_prefix='/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmprglvf6f4/venv',
+                   base_prefix='/Library/Frameworks/Python.framework/Versions/3.12',
+                   base_exec_prefix='/Library/Frameworks/Python.framework/Versions/3.12',
+                   _stdlib_dir='/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12'),
   'sysconfig': namespace(paths=namespace(stdlib='/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12'),
                          is_python_build=False)}

In macOS, /var is a symlink to /private/var.

Originally posted by @corona10 in https://github.com/python/pyperformance/issues/320#issuecomment-1774012394

Dominant language
Python
Stars
1k
Forks
203
Avg merge
1h 20m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python/pyperformance

All issues in python/pyperformance

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.