New submission from Berker Peksag: This issue is similar to issue 22289.
====================================================================== ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests) (url='ftp://ftp.debian.org/debian/README') ---------------------------------------------------------------------- Traceback (most recent call last): File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 1399, in ftp_open fw = self.connect_ftp(user, passwd, host, port, dirs, req.timeout) File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 1445, in connect_ftp dirs, timeout) File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 2243, in __init__ self.init() File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 2249, in init self.ftp.connect(self.host, self.port, self.timeout) File "/opt/python/3.x.langa-ubuntu/build/Lib/ftplib.py", line 153, in connect source_address=self.source_address) File "/opt/python/3.x.langa-ubuntu/build/Lib/socket.py", line 655, in create_connection raise err File "/opt/python/3.x.langa-ubuntu/build/Lib/socket.py", line 646, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/python/3.x.langa-ubuntu/build/Lib/test/test_urllib2net.py", line 226, in _test_urls f = urlopen(url, req, TIMEOUT) File "/opt/python/3.x.langa-ubuntu/build/Lib/test/test_urllib2net.py", line 33, in wrapped return _retry_thrice(func, exc, *args, **kwargs) File "/opt/python/3.x.langa-ubuntu/build/Lib/test/test_urllib2net.py", line 29, in _retry_thrice raise last_exc File "/opt/python/3.x.langa-ubuntu/build/Lib/test/test_urllib2net.py", line 23, in _retry_thrice return func(*args, **kwargs) File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 463, in open response = self._open(req, data) File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 481, in _open '_open', req) File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 441, in _call_chain result = func(*args) File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 1417, in ftp_open raise exc.with_traceback(sys.exc_info()[2]) File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 1399, in ftp_open fw = self.connect_ftp(user, passwd, host, port, dirs, req.timeout) File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 1445, in connect_ftp dirs, timeout) File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 2243, in __init__ self.init() File "/opt/python/3.x.langa-ubuntu/build/Lib/urllib/request.py", line 2249, in init self.ftp.connect(self.host, self.port, self.timeout) File "/opt/python/3.x.langa-ubuntu/build/Lib/ftplib.py", line 153, in connect source_address=self.source_address) File "/opt/python/3.x.langa-ubuntu/build/Lib/socket.py", line 655, in create_connection raise err File "/opt/python/3.x.langa-ubuntu/build/Lib/socket.py", line 646, in create_connection sock.connect(sa) urllib.error.URLError: <urlopen error ftp error: ConnectionRefusedError(111, 'Connection refused')> http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/5026/steps/test/logs/stdio ---------- components: Tests files: connection-refused.diff keywords: patch messages: 228977 nosy: berker.peksag, orsenthil priority: normal severity: normal stage: patch review status: open title: support.transient_internet() doesn't catch connection refused errors type: behavior versions: Python 3.4, Python 3.5 Added file: http://bugs.python.org/file36862/connection-refused.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22596> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com