Do we need --specified-platforms-only in stubtest_third_party?
未关闭
还没有人认领这个 Issue。
project: infrastructure
- 主要语言
- Python
- 星标
- 5.1k
- 派生
- 2.1k
- 平均合并
- 1 天 19 小时
- 30 天内合并 PR
- 82
描述
When this option is specified (which it is when running in CI), stubtest won't run when a platform is not specified in METADATA.toml. The test is marked as "skipped". When it's not specified (the default), stubtest will run and will most likely case an error.
I noticed this when running stubtest_third_party.py locally on my Linux system and it errored on pywin32.
I suggest we either:
- Remove that option altogether and always skip stubtest for stubs not specified in
METADATA.toml; or - reverse the logic so that those tests are skipped by default and only generate errors when an explicit option is given.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先从 stubtest_third_party.py 以及它如何从 METADATA.toml 读取平台设置开始,然后在 Linux 上本地复现 pywin32 的行为。比较 --specified-platforms-only 的默认使用方式和 CI 使用方式,并决定项目应统一采用哪种行为;当该选项的语义保持一致,且相关的 stubtest 运行不再意外失败时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- testing-qa, tooling
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100