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.

classification
Title: test_urllib2.py test failures on Py3K Mac OS X
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.1, Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: orsenthil Nosy List: mark.dickinson, michael.foord, orsenthil
Priority: normal Keywords:

Created on 2010-05-01 10:56 by michael.foord, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg104708 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2010-05-01 10:56
Failures on py3k, Mac OS X 10.6.3.


======================================================================
ERROR: test_proxy_https (__main__.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_urllib2.py", line 1010, in test_proxy_https
    r = o.open(req)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 349, in open
    response = self._open(req, data)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 367, in _open
    '_open', req)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 327, in _call_chain
    result = func(*args)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 655, in <lambda>
    meth(r, proxy, type))
  File "/compile/python-trunk3/Lib/urllib/request.py", line 663, in proxy_open
    if req.host and proxy_bypass(req.host):
  File "/compile/python-trunk3/Lib/urllib/request.py", line 2214, in proxy_bypass
    return proxy_bypass_macosx_sysconf(host)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 2183, in proxy_bypass_macosx_sysconf
    hostIP = ip2num(hostIP)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 2161, in ip2num
    if len(parts) != 4:
TypeError: object of type 'map' has no len()

======================================================================
ERROR: test_proxy_https_proxy_authorization (__main__.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_urllib2.py", line 1026, in test_proxy_https_proxy_authorization
    r = o.open(req)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 349, in open
    response = self._open(req, data)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 367, in _open
    '_open', req)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 327, in _call_chain
    result = func(*args)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 655, in <lambda>
    meth(r, proxy, type))
  File "/compile/python-trunk3/Lib/urllib/request.py", line 663, in proxy_open
    if req.host and proxy_bypass(req.host):
  File "/compile/python-trunk3/Lib/urllib/request.py", line 2214, in proxy_bypass
    return proxy_bypass_macosx_sysconf(host)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 2183, in proxy_bypass_macosx_sysconf
    hostIP = ip2num(hostIP)
  File "/compile/python-trunk3/Lib/urllib/request.py", line 2161, in ip2num
    if len(parts) != 4:
TypeError: object of type 'map' has no len()
msg104712 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2010-05-01 11:37
Same failure on 31-maint.
msg105385 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2010-05-09 12:18
Fixed in r81024 (py3k), r81025 (release31-maint).
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52834
2010-05-09 12:18:45mark.dickinsonsetstatus: open -> closed

type: behavior
components: + Library (Lib)

nosy: + mark.dickinson
messages: + msg105385
resolution: fixed
stage: resolved
2010-05-01 11:37:51michael.foordsetmessages: + msg104712
versions: + Python 3.1
2010-05-01 10:57:36michael.foordsetassignee: orsenthil

nosy: + orsenthil
2010-05-01 10:56:47michael.foordcreate