unittest fails with "Start directory is not importable" when trying to run sourceless tests
オープン
まだ誰も着手していません。
stdlib
tests
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- PR マージ指標
- PR 指標を取得中
説明
| BPO | 26859 |
|---|---|
| Nosy | @rbtcollins, @Fak3, @vadmium |
| 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-04-26.13:42:17.449>
labels = ['tests', 'type-bug', 'library']
title = 'unittest fails with "Start directory is not importable" when trying to run sourceless tests'
updated_at = <Date 2019-12-10.08:16:01.494>
user = 'https://github.com/xdegaye'
bugs.python.org fields:
activity = <Date 2019-12-10.08:16:01.494>
actor = 'xdegaye'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)', 'Tests']
creation = <Date 2016-04-26.13:42:17.449>
creator = 'xdegaye'
dependencies = []
files = ['42611', '42646', '43507']
hgrepos = []
issue_num = 26859
keywords = ['patch']
message_count = 7.0
messages = ['264283', '264338', '264361', '264431', '264472', '268918', '269055']
nosy_count = 4.0
nosy_names = ['rbcollins', 'Roman.Evstifeev', 'martin.panter', 'Pam.McANulty']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue26859'
versions = ['Python 3.6']
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず unittest.patch と unittest_2.patch、特に含まれているテストケースを確認し、次にソースファイルのないテストに対する unittest のテスト検出動作を調べます。その後、報告された失敗と unittest_3.patch を比較します。ソースファイルのないテストのシナリオで "Start directory is not importable" が発生しなくなり、回帰テストがパスすれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- testing-qa
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100