test_build_details fails if executed from a relocated place
Aperta
Nessuno ha ancora preso questa issue.
build
tests
type-bug
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
Bug report
Bug description:
[2025-05-08T15:36:07.483Z] 0:00:57 load avg: 32.60 [ 90/491/1] test_bool passed
[2025-05-08T15:36:07.747Z] 0:00:57 load avg: 32.60 [ 91/491/2] test_build_details failed (1 failure)
[2025-05-08T15:36:07.747Z] test_base_interpreter (test.test_build_details.CPythonBuildDetailsTests.test_base_interpreter) ... FAIL
[2025-05-08T15:36:07.747Z] test_base_prefix (test.test_build_details.CPythonBuildDetailsTests.test_base_prefix) ... ok
[2025-05-08T15:36:07.747Z] test_implementation (test.test_build_details.CPythonBuildDetailsTests.test_implementation) ... ok
[2025-05-08T15:36:07.747Z] test_language_version (test.test_build_details.CPythonBuildDetailsTests.test_language_version) ... ok
[2025-05-08T15:36:07.747Z] test_language_version_info (test.test_build_details.CPythonBuildDetailsTests.test_language_version_info) ... ok
[2025-05-08T15:36:07.747Z] test_location (test.test_build_details.CPythonBuildDetailsTests.test_location) ... ok
[2025-05-08T15:36:07.747Z] test_parse (test.test_build_details.CPythonBuildDetailsTests.test_parse) ... ok
[2025-05-08T15:36:07.747Z] test_platform (test.test_build_details.CPythonBuildDetailsTests.test_platform) ... ok
[2025-05-08T15:36:07.747Z] test_top_level_container (test.test_build_details.CPythonBuildDetailsTests.test_top_level_container) ... ok
[2025-05-08T15:36:07.747Z]
[2025-05-08T15:36:07.747Z] ======================================================================
[2025-05-08T15:36:07.747Z] FAIL: test_base_interpreter (test.test_build_details.CPythonBuildDetailsTests.test_base_interpreter)
[2025-05-08T15:36:07.747Z] ----------------------------------------------------------------------
[2025-05-08T15:36:07.747Z] Traceback (most recent call last):
[2025-05-08T15:36:07.747Z] File "/bb/jenkins_work/python/workspace/python_python3.14-debian_PR-1/distro/refroot/amd64/opt/bb/lib64/python3.14/test/test_build_details.py", line 124, in test_base_interpreter
[2025-05-08T15:36:07.747Z] self.assertEqual(os.path.realpath(value), os.path.realpath(sys.executable))
[2025-05-08T15:36:07.747Z] ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2025-05-08T15:36:07.747Z] AssertionError: '/bb/bin/package/opt/bb/bin/python3.14' != '/bb/jenkins_work/python/workspace/python_pyth[57 chars]3.14'
[2025-05-08T15:36:07.747Z] - /bb/bin/package/opt/bb/bin/python3.14
[2025-05-08T15:36:07.747Z] + /bb/jenkins_work/python/workspace/python_python3.14-debian_PR-1/distro/refroot/amd64/opt/bb/bin/python3.14
[2025-05-08T15:36:07.747Z]
[2025-05-08T15:36:07.747Z]
[2025-05-08T15:36:07.747Z] ----------------------------------------------------------------------
[2025-05-08T15:36:07.747Z] Ran 9 tests in 0.013s```
### CPython versions tested on:
3.14
### Operating systems tested on:
Linux
Guida per i contributori
Apri la guida per i contributori
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
Inizia da test/test_build_details.py, in particolare da CPythonBuildDetailsTests.test_base_interpreter, e riproduci il fallimento quando Python viene eseguito da un’installazione spostata. Esamina come il test ottiene e confronta i percorsi dell’interprete di base. Il lavoro è completato quando test_build_details passa nello scenario di posizione spostata senza rompere gli altri test elencati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100