mock_open does not support the use of 'seek()'
未關閉
還沒有人認領這個 Issue。
3.11
stdlib
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 558
描述
| BPO | 44102 |
|---|---|
| Nosy | @rbtcollins, @cjw296, @voidspace, @lisroach, @mariocj89, @tirkarthi |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2021-05-10.11:32:27.597>
labels = ['type-feature', 'library', '3.11']
title = "mock_open does not support the use of 'seek()'"
updated_at = <Date 2021-05-10.12:47:20.257>
user = 'https://bugs.python.org/nikle'
bugs.python.org fields:
activity = <Date 2021-05-10.12:47:20.257>
actor = 'xtreak'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-05-10.11:32:27.597>
creator = 'nikle'
dependencies = []
files = []
hgrepos = []
issue_num = 44102
keywords = []
message_count = 2.0
messages = ['393378', '393383']
nosy_count = 7.0
nosy_names = ['rbcollins', 'cjw296', 'michael.foord', 'lisroach', 'mariocj89', 'xtreak', 'nikle']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue44102'
versions = ['Python 3.11']
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先找出 unittest.mock.mock_open 的標準函式庫實作與測試。重現回報的 seek() 使用方式,並檢查現有的類檔案 mock 行為;當 mock_open 支援 seek() 且該行為有測試涵蓋時,工作即完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- testing
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100