FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

macOS failing on GitHub Actions: test_pythoninfo.GetInfoTests · Issue #422 · python/pyperformance · GitHub

macOS failing on GitHub Actions: test_pythoninfo.GetInfoTests #422

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 #320 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL