mock.patch decorating a generator returns a regular function.
オープン
まだ誰も着手していません。
tests
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 558
説明
| BPO | 27341 |
|---|---|
| Nosy | @terryjreedy, @rbtcollins, @voidspace, @shoshber, @tirkarthi |
| Files |
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 2016-06-17.05:35:08.841>
labels = ['type-bug', 'tests']
title = 'mock.patch decorating a generator returns a regular function.'
updated_at = <Date 2019-12-13.11:13:51.134>
user = 'https://github.com/shoshber'
bugs.python.org fields:
activity = <Date 2019-12-13.11:13:51.134>
actor = 'xtreak'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Tests']
creation = <Date 2016-06-17.05:35:08.841>
creator = 'shoshber'
dependencies = []
files = ['43443', '43444']
hgrepos = []
issue_num = 27341
keywords = []
message_count = 6.0
messages = ['268709', '268749', '268757', '268758', '268761', '268762']
nosy_count = 5.0
nosy_names = ['terry.reedy', 'rbcollins', 'michael.foord', 'shoshber', 'xtreak']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'test needed'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue27341'
versions = ['Python 3.5', 'Python 3.6']
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue では、例のテストとして silentfail.py を、記録された出力として actual.out をリンクしています。まず例を実行し、その generator の動作を出力と比較してから、mock.patch の実装と既存の mock テストを追跡します。デコレーターの動作を捉える回帰テストが追加され、テストスイートがパスすれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- testing-qa
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100