python / python/cpython

test_urllib2 alters the execution environment (unsetting `no_proxy`)

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

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

tests type-bug
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Bug report

Bug description:

Running the Python-3.13.1 test suite with make test, and:

1 test altered the execution environment (env changed):
    test_urllib2

The offending code pattern in several test cases is:

os.environ['no_proxy'] = '*'
# ... ...
del os.environ['no_proxy']

Thus if no_proxy already exists in the environment variable, these tests will remove it.

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs
  • gh-132584
  • gh-132585

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず make test を実行して CPython のテストスイートを開始し、test_urllib2 を調べて、no_proxy を設定および削除するケースに注目します。テストが既存の no_proxy 環境値をそのまま維持し、スイートが実行環境の変更を報告しなくなれば、変更は完了です。リンクされた PR gh-132584 と gh-132585 は、すでに作業が進行中であることを示しています。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
testing-qa
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

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

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