cpython: 6c186caa6285 (original) (raw)

Mercurial > cpython

changeset 81058:6c186caa6285 2.7

Issue #16702: Skip proxies for localhost in urllib2_localnet tests [#16702]

Senthil Kumaran senthil@uthcode.com
date Wed, 26 Dec 2012 01:45:22 -0800
parents ecf3cd3af502
children 0ffaf1079a7a
files Lib/test/test_urllib2_localnet.py Misc/NEWS
diffstat 2 files changed, 11 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_urllib2_localnet.py 8 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/test/test_urllib2_localnet.py +++ b/Lib/test/test_urllib2_localnet.py @@ -5,7 +5,9 @@ import urllib2 import BaseHTTPServer import unittest import hashlib + from test import test_support + mimetools = test_support.import_module('mimetools', deprecated=True) threading = test_support.import_module('threading') @@ -346,6 +348,12 @@ class TestUrlopen(BaseTestCase): for transparent redirection have been written. """

+ def start_server(self, responses): handler = GetRequestHandler(responses)

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -164,6 +164,9 @@ Core and Builtins Library ------- +- Issue #16702: test_urllib2_localnet tests now correctly ignores proxies for