unittest.mock.create_autospec(Obj, instance=True) has self keyword in _spec_signature if Obj implements __call__
オープン
まだ誰も着手していません。
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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
__call__を実装するオブジェクトとinstance=Trueを指定してunittest.mock.create_autospecから始め、報告された_spec_signatureの動作を再現します。生成されたシグネチャを期待されるインスタンスのシグネチャと比較し、unittest.mockのテストスイート内の関連するテストを特定します。このケースで_spec_signatureにselfキーワードが存在しなくなり、回帰テストのカバレッジが追加されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- testing-qa
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100