Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Lib/test/test_urllib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,12 @@ def test_redirect_fragment(self):
def test_redirect_no_path(self):
# Issue 14132: Relative redirect strips original path

# Keep this test independent from proxy-related environment settings.
env = self.enterContext(os_helper.EnvironmentVarGuard())
for var in ("http_proxy", "https_proxy", "all_proxy", "no_proxy",
"HTTP_PROXY", "HTTPS_PROXY", "ALL_PROXY", "NO_PROXY"):
env.pop(var, None)

# clear _opener global variable
self.addCleanup(urllib.request.urlcleanup)

Expand Down
Loading