test_socket tests fail with kernel lacking support for IPPROTO_UDPLITE
未关闭
还没有人认领这个 Issue。
tests
type-bug
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
Bug report
Bug description:
When running on the kernel without support for UDPLite, setup of tests (function clientSetUp) in test_socket fails:
self.cli = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDPLITE)
this command raises OSError.
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs
- gh-149081
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 test_socket 中的 clientSetUp 函数开始,在不支持 UDPLite 的 Linux 内核上复现该失败。检查测试如何处理不可用的 socket 协议,然后运行相关的 test_socket 测试;当不支持 IPPROTO_UDPLITE 时 setup 不再失败,即表示完成。已关联的 PR gh-149081 表明相关工作已经在进行中。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- networking, testing-qa
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100