test_build_details fails if executed from a relocated place
未關閉
還沒有人認領這個 Issue。
build
tests
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 test/test_build_details.py 開始,特別關注 CPythonBuildDetailsTests.test_base_interpreter,並在從重新定位後的安裝執行 Python 時重現失敗。檢查測試如何取得並比較基礎直譯器路徑。在重新定位位置的情境中 test_build_details 通過,且不破壞其他列出的測試,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- testing-qa
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100