mock_open does not support the use of 'seek()'
Open
Nobody has claimed this yet.
3.11
stdlib
type-feature
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
| 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']
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the standard-library implementation and tests for unittest.mock.mock_open. Reproduce the reported use of seek() and inspect the existing mock file-like behavior; the work is done when mock_open supports seek() and the behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100