python / python/cpython

test_launcher fails if no Python is installed

オープン
#121,090 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。