[issue28435] test_urllib2_localnet.ProxyAuthTests fails with no_proxy and NO_PROXY env

Martin Panter report at bugs.python.org
Fri Oct 14 20:54:00 EDT 2016


Martin Panter added the comment:

The test tries using ProxyHandler directly. It looks like that handler intentionally ignores the request if it matches no_proxies (Issue 6894), so I think Piotr’s approach of adjusting the tests is correct. The patch looks good to me, though I would drop that blank line in test_proxy_qop_auth_works().

It looks like setting a temporary environment variable should disable any settings from Windows registry or OS X config, so this patch should even help in those cases.

----------
versions: +Python 2.7, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28435>
_______________________________________


More information about the Python-bugs-list mailing list