unittest.mock.create_autospec(Obj, instance=True) has self keyword in _spec_signature if Obj implements __call__
未關閉
還沒有人認領這個 Issue。
stdlib
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
| BPO | 41915 |
|---|---|
| Nosy | @tirkarthi, @CendioOssman |
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 2020-10-03.01:23:47.938>
labels = ['library']
title = 'unittest.mock.create_autospec(Obj, instance=True) has self keyword in _spec_signature if Obj implements __call__'
updated_at = <Date 2020-12-04.08:06:53.012>
user = 'https://bugs.python.org/ettang'
bugs.python.org fields:
activity = <Date 2020-12-04.08:06:53.012>
actor = 'CendioOssman'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2020-10-03.01:23:47.938>
creator = 'ettang'
dependencies = []
files = []
hgrepos = []
issue_num = 41915
keywords = []
message_count = 2.0
messages = ['377846', '382470']
nosy_count = 3.0
nosy_names = ['xtreak', 'CendioOssman', 'ettang']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue41915'
versions = ['Python 3.6']
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從對實作了__call__的物件使用unittest.mock.create_autospec和instance=True開始,然後重現回報的_spec_signature行為。將產生的簽章與預期的執行個體簽章進行比較,並找出unittest.mock測試套件中的相關測試。對於此情況,當self關鍵字不再出現在_spec_signature中,且具有回歸測試涵蓋時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- testing-qa
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100