macOS failing on GitHub Actions: test_pythoninfo.GetInfoTests
- Langage dominant
- Python
- Étoiles
- 1k
- Forks
- 203
- Merge moyen
- 1 h 20 min
- PR mergées (30 j)
- 2
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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Vérifiez d'abord la pull request #424, puisqu'elle est déjà ouverte pour cette issue. Sinon, commencez par pyperformance/tests/test_pythoninfo.py au niveau de test_venv et comparez l'échec de macOS GitHub Actions avec les valeurs attendues ; le travail est terminé lorsque le test passe sur macOS sans l'écart entre /var et /private/var.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- github-actions, python
- Domaine
- ci-cd, operating-systems, testing-qa
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 25/100