Frozen `NamespaceLoader` is leaking into the source `_bootstrap_external` in the tests
未关闭
还没有人认领这个 Issue。
topic-importlib
type-bug
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 558
描述
Bug report
While implementing #92205 I ran into the issue of the source version of test_importlib.test_api.ReloadTests holding on to the frozen version of _bootstrap_external.
Your environment
- CPython versions tested on: main
- Operating system and architecture:
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 test_importlib.test_api.ReloadTests,以及它如何引用源代码中的 _bootstrap_external 和冻结的 NamespaceLoader。跟踪测试设置,以确定冻结模块保留在何处;完成的标准是源测试实现不再持有该冻结版本,并且相关的 importlib 测试通过。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- testing
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100