test_sys globally requires _datetime for cpython_only test
未关闭
还没有人认领这个 Issue。
3.13
3.14
3.15
tests
type-refactor
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
Bug report
Bug description:
_datetime is only being used by @cpython_only test, but imported on top level
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
- gh-143997
- gh-144003
- gh-144042
- gh-144143
- gh-144144
- gh-145248
- gh-146288
- gh-146289
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 test_sys 模块,并结合 cpython_only 测试检查其顶层的 _datetime 导入。确认 _datetime 仅该测试需要,然后运行相关的 test_sys 检查,以验证该导入已适当地限定在相应作用域内。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- testing-qa
- Issue 类型
- 缺陷
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100