Repository navigation
Commit 0f98488
gh-148919: Make test_redirect_no_path independent of proxy environment variables (GH-148920)
test_redirect_encoding uses build_opener(), which installs the default
ProxyHandler, so it failed the same way when http_proxy was set. Move
the environment cleanup into a helper and use EnvironmentVarGuard.unset().
---------
(cherry picked from commit d854380)
Co-authored-by: sendaoYan <yansendao@hygon.cn>
Co-authored-by: Senthil Kumaran <senthil@python.org>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 84ce091 commit 0f98488
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1436 | 1436 | | |
1437 | 1437 | | |
1438 | 1438 | | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
1439 | 1445 | | |
1440 | 1446 | | |
| 1447 | + | |
1441 | 1448 | | |
1442 | 1449 | | |
1443 | 1450 | | |
| |||
1471 | 1478 | | |
1472 | 1479 | | |
1473 | 1480 | | |
| 1481 | + | |
1474 | 1482 | | |
1475 | 1483 | | |
1476 | 1484 | | |
| |||
0 commit comments