Repository navigation
Commit 1509a88
gh-148919: Make test_redirect_no_path independent of proxy environment variables (GH-148920)
* gh-148919: Make test_redirect_no_path independent of proxy environment variables
* gh-148919: Also make test_redirect_encoding independent of proxy env
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 d4a5b52 commit 1509a88
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1453 | 1453 | | |
1454 | 1454 | | |
1455 | 1455 | | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
1456 | 1462 | | |
1457 | 1463 | | |
| 1464 | + | |
1458 | 1465 | | |
1459 | 1466 | | |
1460 | 1467 | | |
| |||
1488 | 1495 | | |
1489 | 1496 | | |
1490 | 1497 | | |
| 1498 | + | |
1491 | 1499 | | |
1492 | 1500 | | |
1493 | 1501 | | |
| |||
0 commit comments