[New-bugs-announce] [issue5181] test_urllib failures on the 3.1 buildbots
Antoine Pitrou
report at bugs.python.org
Sat Feb 7 23:47:39 CET 2009
New submission from Antoine Pitrou <pitrou at free.fr>:
This failure happens on all 3.x buildbots:
======================================================================
ERROR: test_empty_socket (test.test_urllib.urlopen_HttpTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/test/test_urllib.py",
line 194, in test_empty_socket
self.assertRaises(IOError, urlopen, "http://something")
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/unittest.py", line
344, in failUnlessRaises
callableObj(*args, **kwargs)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/test/test_urllib.py",
line 33, in urlopen
return opener.open(url)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/urllib/request.py", line
1444, in open
return getattr(self, name)(url)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/urllib/request.py", line
1618, in open_http
return self._open_generic_http(http.client.HTTPConnection, url, data)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/urllib/request.py", line
1601, in _open_generic_http
response = http_conn.getresponse()
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/http/client.py",
line 937, in getresponse
method=self._method)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/http/client.py",
line 275, in __init__
self.fp = sock.makefile("rb")
TypeError: makefile() takes exactly 3 positional arguments (2 given)
======================================================================
ERROR: test_read (test.test_urllib.urlopen_HttpTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/test/test_urllib.py",
line 168, in test_read
fp = urlopen("http://python.org/")
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/test/test_urllib.py",
line 33, in urlopen
return opener.open(url)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/urllib/request.py", line
1444, in open
return getattr(self, name)(url)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/urllib/request.py", line
1618, in open_http
return self._open_generic_http(http.client.HTTPConnection, url, data)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/urllib/request.py", line
1601, in _open_generic_http
response = http_conn.getresponse()
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/http/client.py",
line 937, in getresponse
method=self._method)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/http/client.py",
line 275, in __init__
self.fp = sock.makefile("rb")
TypeError: makefile() takes exactly 3 positional arguments (2 given)
======================================================================
ERROR: test_read_bogus (test.test_urllib.urlopen_HttpTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/test/test_urllib.py",
line 185, in test_read_bogus
self.assertRaises(IOError, urlopen, "http://python.org/")
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/unittest.py", line
344, in failUnlessRaises
callableObj(*args, **kwargs)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/test/test_urllib.py",
line 33, in urlopen
return opener.open(url)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/urllib/request.py", line
1444, in open
return getattr(self, name)(url)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/urllib/request.py", line
1618, in open_http
return self._open_generic_http(http.client.HTTPConnection, url, data)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/urllib/request.py", line
1601, in _open_generic_http
response = http_conn.getresponse()
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/http/client.py",
line 937, in getresponse
method=self._method)
File
"/home/pybot/buildarea/3.x.klose-debian-ppc/build/Lib/http/client.py",
line 275, in __init__
self.fp = sock.makefile("rb")
TypeError: makefile() takes exactly 3 positional arguments (2 given)
----------
messages: 81353
nosy: krisvale, pitrou
priority: critical
severity: normal
stage: needs patch
status: open
title: test_urllib failures on the 3.1 buildbots
type: behavior
versions: Python 3.0, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5181>
_______________________________________
More information about the New-bugs-announce
mailing list