macOS failing on GitHub Actions: test_pythoninfo.GetInfoTests
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- github-actions, python
- Bereich
- ci-cd, operating-systems, testing-qa
Rechercherichtung
Prüfe zuerst Pull Request #424, da er für dieses Issue bereits offen ist. Beginne andernfalls mit pyperformance/tests/test_pythoninfo.py bei test_venv und vergleiche den macOS GitHub Actions-Fehler mit den erwarteten Werten; abgeschlossen ist die Aufgabe, wenn der Test unter macOS ohne die Abweichung zwischen /var und /private/var besteht.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Python
- Sterne
- 1k
- Forks
- 203
- Ø Merge
- 1 Std. 20 Min.
- Gemergte PRs (30 T.)
- 2
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus python/pyperformance
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
python/pyperformance#346 · 3 Kommentare ·
-
python/pyperformance#474 · 4 Reaktionen · 1 zugewiesene Person ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
python/pyperformance#473 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
python/pyperformance#464 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
python/pyperformance#460 · 2 Kommentare · 1 Reaktion ·
Alle Issues in python/pyperformance
Ähnliche Issues
-
essnmx good first issue
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
-
[Feature] 奇物选择添加优先级 Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
syfoud/Simulated_Scepter#174 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Giskard-AI/giskard-oss#2840 · 1 Kommentar ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Offenarea: repo bug perceived difficulty: 2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
yeti-platform/yeti#1380 ·