test_os fails on FreeBSD 15 with zfs filesystem
未关闭
还没有人认领这个 Issue。
OS-freebsd
tests
type-bug
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
Bug report
Bug description:
fallocate() fails with EOPNOTSUPP, rather than EINVAL on FreeBSD 15 with zfs.
======================================================================
ERROR: test_posix_fallocate (test.test_os.test_posix.PosixTester.test_posix_fallocate)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nick/src/cpython-fixes/Lib/test/test_os/test_posix.py", line 409, in test_posix_fallocate
posix.posix_fallocate(fd, 0, 10)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
OSError: [Errno 45] Operation not supported
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other - FreeBSD
% uname -a
FreeBSD lappy-freebsd 15.0-RELEASE FreeBSD 15.0-RELEASE releng/15.0-n280995-7aedc8de6446 GENERIC arm64
Linked PRs
- gh-148844
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Lib/test/test_os/test_posix.py 中的 test_posix_fallocate 开始,在使用 ZFS 的 FreeBSD 15 上复现该失败。将预期的 errno 与平台行为进行比较,并查看已链接的 PR gh-148844;完成的标准是相关测试通过,且不会导致受支持平台出现回归。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- operating-systems, testing-qa
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100