homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients belopolsky, db3l, mark.dickinson, ned.deily, orsenthil, ronaldoussoren, vstinner
Date 2010年06月22日.08:08:55
SpamBayes Score 0.0006223162
Marked as misclassified No
Message-id <1277194139.83.0.430982754789.issue8455@psf.upfronthosting.co.za>
In-reply-to
Content
The mac-related code in urllib is correct, it uses the SystemConfiguration framework on MacOSX to get the proxy settings. That said, the code in _scproxy is not entirly correct, it makes the wrong assumption w.r.t. the value of exclude_simple when the corresponding value is not in the settings retrieved from the SystemConfiguration framework.
The tests seem to make assumptions on how the proxy-detecting code functions, although I don't understand what's going on here (that is, I haven't waded through the test code and urllib to trace the code)
The patch "issue-8455-scproxy.patch" ensures that the tests pass, unless the user changed their proxy settings and selected the checkbox "Exclude simple hostnames" (System Preferernces -> Network -> First network adaptor -> Advanced... -> Proxies)
Please test if the patch solves the issue for you as well. 
NOTE: as I mention in the second paragraph the tests seem to make unwarrented assumptions about their environment. Further proof for this:
when you set "http_proxy=localhost:12345" in the environment on a Unixy system the tests will fail as well (although a different subset of the tests).
History
Date User Action Args
2010年06月22日 08:09:00ronaldoussorensetrecipients: + ronaldoussoren, db3l, mark.dickinson, belopolsky, orsenthil, vstinner, ned.deily
2010年06月22日 08:08:59ronaldoussorensetmessageid: <1277194139.83.0.430982754789.issue8455@psf.upfronthosting.co.za>
2010年06月22日 08:08:57ronaldoussorenlinkissue8455 messages
2010年06月22日 08:08:56ronaldoussorencreate

AltStyle によって変換されたページ (->オリジナル) /