diff options
| author | Senthil Kumaran <senthil@uthcode.com> | 2011-08-06 04:24:33 (GMT) |
|---|---|---|
| committer | Senthil Kumaran <senthil@uthcode.com> | 2011-08-06 04:24:33 (GMT) |
| commit | b5bd4c88b5de771647cc644b4e50e701cadba08c (patch) | |
| tree | ff5f3f2ba2752817e33f174523ae7fe7645653ba /Lib/test/test_urllib.py | |
| parent | 0f8acebd532645f888ce4cca83a45a2136b30ced (diff) | |
| download | cpython-b5bd4c88b5de771647cc644b4e50e701cadba08c.zip cpython-b5bd4c88b5de771647cc644b4e50e701cadba08c.tar.gz cpython-b5bd4c88b5de771647cc644b4e50e701cadba08c.tar.bz2 | |
Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)
Diffstat (limited to 'Lib/test/test_urllib.py')
| -rw-r--r-- | Lib/test/test_urllib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index e7e54a2..401dd5c 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -114,6 +114,9 @@ class ProxyTests(unittest.TestCase): proxies = urllib.getproxies_environment() # getproxies_environment use lowered case truncated (no '_proxy') keys self.assertEqual('localhost', proxies['no']) + # List of no_proxies with space. + self.env.set('NO_PROXY', 'localhost, anotherdomain.com, newdomain.com') + self.assertTrue(urllib.proxy_bypass_environment('anotherdomain.com')) class urlopen_HttpTests(unittest.TestCase): |
