Implementation name "python" is hard-coded in test_venv
未關閉
還沒有人認領這個 Issue。
tests
topic-venv
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
The behavior of venv was changed in 48d926269963.
Before this change, libpath was hard-coded as python%d.%d. It has now been replaced with sysconfig.get_path(..., scheme='venv').
However, while this patch was applied, the corresponding test, test_venv was not updated and was left unchanged. As a result, test_venv now fails when sysconfig is overridden.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
- gh-143000
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 test_venv 測試開始,檢視 commit 48d926269963 中的 venv 變更,特別是 sysconfig 的覆寫行為。更新測試預期的實作名稱,使其反映目前的 venv 路徑查找,然後執行 test_venv,並確認在覆寫 sysconfig 時測試會通過。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- testing-qa
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100