test_launcher fails if no Python is installed
オープン
まだ誰も着手していません。
OS-windows
tests
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
If no Python is installed on a system, test_launcher fails with:
======================================================================
FAIL: test_shebang_command_in_venv (test.test_launcher.TestLauncher.test_shebang_command_in_venv)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\encukou\dev\cpython\Lib\test\test_launcher.py", line 765, in test_shebang_command_in_venv
data = self.run_py([script], env=env)
File "C:\Users\encukou\dev\cpython\Lib\test\test_launcher.py", line 254, in run_py
self.assertEqual(expect_returncode, p.returncode)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 != 103
There's now a Buildbot that happens to have this config, see e.g. here
Linked PRs
- gh-121091
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Lib/test/test_launcher.py の TestLauncher.test_shebang_command_in_venv から始め、Python がインストールされていないシステムでの失敗を確認します。その構成でテストを再現し、影響を受ける Buildbot セットアップで test_launcher スイートがパスすることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- testing-qa
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100