test_os fails on FreeBSD 15 with zfs filesystem
未關閉
還沒有人認領這個 Issue。
OS-freebsd
tests
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 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