[issue7149] 2.6.4rc1 regression: test_urllib2 fails on OS X with UnboundLocalError
Ronald Oussoren
report at bugs.python.org
Fri Oct 16 09:22:06 CEST 2009
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
I've attached a patch for the trunk that fixes the issue and passes
test_urllib.py on the trunk.
What I haven't done yet is write some unittests that actually test
different proxy configurations, that would require changing the
SystemConfigation proxy settings (that is, the settings you set using
the Network panel in "System Preferences").
Doing that is non-trivial, especially because running the tests should
affect the rest of the system. It should be possible though to
temporarily change the settings for the currently running process.
----------
Added file: http://bugs.python.org/file15145/urllib-hostIP-error.txt
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7149>
_______________________________________
More information about the Python-bugs-list
mailing list