Issue 1617: Rare exception in test_urllib2net (original) (raw)

test test_urllib2net failed -- Traceback (most recent call last): File "/tmp/python-test/local/lib/python2.6/test/test_urllib2net.py", line 175, in test_ftp self._test_urls(urls, self._extra_handlers()) File "/tmp/python-test/local/lib/python2.6/test/test_urllib2net.py", line 244, in _test_urls f = urllib2.urlopen(url, req) File "/tmp/python-test/local/lib/python2.6/urllib2.py", line 124, in urlopen return _opener.open(url, data, timeout) File "/tmp/python-test/local/lib/python2.6/urllib2.py", line 380, in open response = self._open(req, data) File "/tmp/python-test/local/lib/python2.6/urllib2.py", line 398, in _open '_open', req) File "/tmp/python-test/local/lib/python2.6/urllib2.py", line 358, in _call_chain result = func(*args) File "/tmp/python-test/local/lib/python2.6/urllib2.py", line 1277, in ftp_open fw = self.connect_ftp(user, passwd, host, port, dirs, req.timeout) File "/tmp/python-test/local/lib/python2.6/urllib2.py", line 1323, in connect_ftp self.cache[key] = ftpwrapper(user, passwd, host, port, dirs, timeout) File "/tmp/python-test/local/lib/python2.6/urllib.py", line 842, in init self.init() File "/tmp/python-test/local/lib/python2.6/urllib.py", line 848, in init self.ftp.connect(self.host, self.port, self.timeout) File "/tmp/python-test/local/lib/python2.6/ftplib.py", line 129, in connect self.sock = socket.create_connection((self.host, self.port), self.timeout) File "/tmp/python-test/local/lib/python2.6/socket.py", line 462, in create_connection raise error, msg TypeError: init() takes exactly 2 arguments (3 given)

It looks like somehow msg is a 2-tuple here. What exception could have been caught?