_get_name_from_path() in Lib/unittest/loader.py fails when src path contains symlinks
オープン
まだ誰も着手していません。
stdlib
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
Bug description:
This is conceptually somewhat similar to gh-148314
When the path to the source tree is via a symlink, an alternate path to the same will cause _get_name_from_path() to assert, thinking the supplied path is not a sub-path of the src tree. During the run of unittest's test suite, "." is passed as a path which is resolved to an absolute path - which of course doesn't match a symlinked path.
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
- gh-149143
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Lib/unittest/loader.py の _get_name_from_path() から始め、その後、symlink 経由で到達するソースツリーのパスを使って unittest のテストスイートを実行します。代替パスでサブパスの assertion が発生しなくなり、関連するリグレッションカバレッジが通れば完了です。gh-149143 はすでにこの issue にリンクされています。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- testing-qa
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 25/100