Split up _testcapimodule.c
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 558
描述
Modules/_testcapimodule.c is a nearly-8000-line behemoth with no clear structure or organization. It is getting hard to maintain.
It also doesn't work well with testing (a) feature macros that affect Python.h and (b) module initialization, so we have additional C-API testing modules: _testmultiphase, _testimportmultiple, _testinternalcapi.
_testbuffer is already split out, but there are many other aspects of the API that would use a similar dedicated test suite.
We should split and combine these, ideally without polluting the namespace of top-level modules.
- PR: gh-94549
- PR: gh-94695
- PR: gh-94702
- PR: gh-95386
- PR: gh-95793
- PR: gh-95819
- PR: gh-99346
- PR: gh-99494
- PR: gh-99517
- PR: gh-99532
- PR: gh-99549
- PR: gh-99551
- PR: gh-102173
- PR: gh-104403
- PR: gh-129400
- PR: gh-129512
- PR: gh-129516
- PR: gh-129521
- PR: gh-129544
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先查看 Modules/_testcapimodule.c 以及現有的 _testmultiphase、_testimportmultiple、_testinternalcapi 和 _testbuffer 模組,然後檢視 issue 中列出的相關 PR。完成的標準是:將 C-API 測試拆分為結構一致的模組,保留相關的測試涵蓋率,並避免污染頂層模組的命名空間。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- c, python
- 領域
- testing-qa
- Issue 類型
- 重構
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 20/100