macOS failing on GitHub Actions: test_pythoninfo.GetInfoTests
- Lingua principale
- Python
- Stelle
- 1k
- Fork
- 203
- Merge medio
- 1h 20m
- PR unite (30g)
- 2
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Controlla prima la pull request #424, poiché è già aperta per questa issue. Altrimenti parti da pyperformance/tests/test_pythoninfo.py in test_venv e confronta il fallimento di macOS GitHub Actions con i valori attesi; il lavoro è concluso quando il test passa su macOS senza la discrepanza tra /var e /private/var.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github-actions, python
- Ambito
- ci-cd, operating-systems, testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100