Use `EnvironmentVarGuard` in tests instead of manually messing with `os.environ`
オープン
まだ誰も着手していません。
tests
type-feature
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Feature or enhancement
Proposal:
Some tests manually tweak os.environ. There is new way to do that with EnvironmentVarGuard. Identify all places and update.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
- gh-128439
- gh-128476
- gh-128522
- gh-130002
- gh-131870
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
CPython のテストスイートを検索して os.environ を手動で変更しているテストを見つけ、それらの使用方法を EnvironmentVarGuard と比較します。開始する前に、リンクされている PR(gh-128439、gh-128476、gh-128522、gh-130002、gh-131870)を確認してください。適用可能な手動の環境変更がすべて移行され、影響を受けるテストが成功すれば作業は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- testing
- issue の種類
- リファクタリング
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100