You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FTP tests of test_urllib2net fail on Travis CI: 425 Security: Bad IP connecting. #79592
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2018-12-07.11:40:06.292>created_at=<Date2018-12-04.22:08:09.727>labels= ['3.8', '3.7', 'tests', 'release-blocker']
title='FTP tests of test_urllib2net fail on Travis CI: 425 Security: Bad IP connecting.'updated_at=<Date2019-12-31.05:15:00.903>user='https://github.com/vstinner'
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2404, in retrfile
conn, retrlen =self.ftp.ntransfercmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
resp =self.sendcmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmdreturnself.getresp()
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getrespraise error_temp(resp)
ftplib.error_temp: 425 Security: Bad IP connecting.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 219, in _test_urls
f = urlopen(url, req, TIMEOUT)
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 27, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 23, in _retry_thriceraise last_exc
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 19, in _retry_thricereturn func(*args, **kwargs)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 525, in open
response =self._open(req, data)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 543, in _open'_open', req)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1551, in ftp_openraise exc.with_traceback(sys.exc_info()[2])
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2404, in retrfile
conn, retrlen =self.ftp.ntransfercmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
resp =self.sendcmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmdreturnself.getresp()
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getrespraise error_temp(resp)
urllib.error.URLError: <urlopen error ftp error: error_temp('425 Security: Bad IP connecting.')>
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
conn, retrlen =self.ftp.ntransfercmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
resp =self.sendcmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmdreturnself.getresp()
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getrespraise error_temp(resp)
ftplib.error_temp: 425 Security: Bad IP connecting.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 296, in test_ftp_basic
u = _urlopen_with_retry(self.FTP_HOST)
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 27, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 23, in _retry_thriceraise last_exc
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 19, in _retry_thricereturn func(*args, **kwargs)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 222, in urlopenreturn opener.open(url, data, timeout)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 525, in open
response =self._open(req, data)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 543, in _open'_open', req)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1551, in ftp_openraise exc.with_traceback(sys.exc_info()[2])
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
conn, retrlen =self.ftp.ntransfercmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
resp =self.sendcmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmdreturnself.getresp()
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getrespraise error_temp(resp)
urllib.error.URLError: <urlopen error ftp error: error_temp('425 Security: Bad IP connecting.')>
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
conn, retrlen =self.ftp.ntransfercmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
resp =self.sendcmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmdreturnself.getresp()
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getrespraise error_temp(resp)
ftplib.error_temp: 425 Security: Bad IP connecting.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 305, in test_ftp_default_timeout
u = _urlopen_with_retry(self.FTP_HOST)
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 27, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 23, in _retry_thriceraise last_exc
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 19, in _retry_thricereturn func(*args, **kwargs)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 222, in urlopenreturn opener.open(url, data, timeout)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 525, in open
response =self._open(req, data)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 543, in _open'_open', req)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1551, in ftp_openraise exc.with_traceback(sys.exc_info()[2])
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
conn, retrlen =self.ftp.ntransfercmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
resp =self.sendcmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmdreturnself.getresp()
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getrespraise error_temp(resp)
urllib.error.URLError: <urlopen error ftp error: error_temp('425 Security: Bad IP connecting.')>
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
conn, retrlen =self.ftp.ntransfercmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
resp =self.sendcmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmdreturnself.getresp()
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getrespraise error_temp(resp)
ftplib.error_temp: 425 Security: Bad IP connecting.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 316, in test_ftp_no_timeout
u = _urlopen_with_retry(self.FTP_HOST, timeout=None)
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 27, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 23, in _retry_thriceraise last_exc
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 19, in _retry_thricereturn func(*args, **kwargs)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 222, in urlopenreturn opener.open(url, data, timeout)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 525, in open
response =self._open(req, data)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 543, in _open'_open', req)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1551, in ftp_openraise exc.with_traceback(sys.exc_info()[2])
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
conn, retrlen =self.ftp.ntransfercmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
resp =self.sendcmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmdreturnself.getresp()
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getrespraise error_temp(resp)
urllib.error.URLError: <urlopen error ftp error: error_temp('425 Security: Bad IP connecting.')>
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
conn, retrlen =self.ftp.ntransfercmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
resp =self.sendcmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmdreturnself.getresp()
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getrespraise error_temp(resp)
ftplib.error_temp: 425 Security: Bad IP connecting.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 324, in test_ftp_timeout
u = _urlopen_with_retry(self.FTP_HOST, timeout=60)
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 27, in wrappedreturn _retry_thrice(func, exc, *args, **kwargs)
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 23, in _retry_thriceraise last_exc
File "/home/travis/build/python/cpython/Lib/test/test_urllib2net.py", line 19, in _retry_thricereturn func(*args, **kwargs)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 222, in urlopenreturn opener.open(url, data, timeout)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 525, in open
response =self._open(req, data)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 543, in _open'_open', req)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1551, in ftp_openraise exc.with_traceback(sys.exc_info()[2])
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 1540, in ftp_open
fp, retrlen = fw.retrfile(file, type)
File "/home/travis/build/python/cpython/Lib/urllib/request.py", line 2425, in retrfile
conn, retrlen =self.ftp.ntransfercmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 365, in ntransfercmd
resp =self.sendcmd(cmd)
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 273, in sendcmdreturnself.getresp()
File "/home/travis/build/python/cpython/Lib/ftplib.py", line 244, in getrespraise error_temp(resp)
urllib.error.URLError: <urlopen error ftp error: error_temp('425 Security: Bad IP connecting.')>
New changeset 65a5eff by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) (GH-10909) 65a5eff
As noted there, GCE has different IP addresses. But I suspect it's not the
new IP address that's the problem, but rather the fact that the GCE setup
is known to break outgoing ftp:
Seems this is a glitch of Travis CI. PR 794 was created long time ago, and while it was regularly merged with master, tests become failing after recent updated. I expect that similar issues can be repeated with other old PRs.
After creating a copy of that PR (see PR 11017), all tests are passed.
New changeset f82e59a by Senthil Kumaran in branch '2.7':
[2.7] bpo-27973 - Fix for urllib.urlretrieve() failing on second ftp transfer (bpo-1040) f82e59a
Activity
vstinner commentedon Dec 4, 2018
ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests) (url='ftp://www.pythontest.net/README')
ERROR: test_ftp_basic (test.test_urllib2net.TimeoutTest)
ERROR: test_ftp_default_timeout (test.test_urllib2net.TimeoutTest)
ERROR: test_ftp_no_timeout (test.test_urllib2net.TimeoutTest)
ERROR: test_ftp_timeout (test.test_urllib2net.TimeoutTest)
It seems like Jython has a similar issue:
http://bugs.jython.org/issue2708
Logs from Travis CI job of #10898:
https://travis-ci.org/python/cpython/jobs/463422586
Re-running test 'test_urllib2net' in verbose mode
test_close (test.test_urllib2net.CloseSocketTest) ... ok
test_custom_headers (test.test_urllib2net.OtherNetworkTests) ... ok
test_file (test.test_urllib2net.OtherNetworkTests) ... ok
test_ftp (test.test_urllib2net.OtherNetworkTests) ... test_redirect_url_withfrag (test.test_urllib2net.OtherNetworkTests) ... ok
test_sites_no_connection_close (test.test_urllib2net.OtherNetworkTests) ... skipped 'XXX: http://www.imdb.com is gone'
test_urlwithfrag (test.test_urllib2net.OtherNetworkTests) ... ok
test_ftp_basic (test.test_urllib2net.TimeoutTest) ... ERROR
test_ftp_default_timeout (test.test_urllib2net.TimeoutTest) ... /home/travis/build/python/cpython/Lib/urllib/request.py:222: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33700), raddr=('104.236.16.9', 21)>
return opener.open(url, data, timeout)
/home/travis/build/python/cpython/Lib/urllib/request.py:222: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33704), raddr=('104.236.16.9', 21)>
return opener.open(url, data, timeout)
/home/travis/build/python/cpython/Lib/urllib/request.py:222: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33708), raddr=('104.236.16.9', 21)>
return opener.open(url, data, timeout)
ERROR
test_ftp_no_timeout (test.test_urllib2net.TimeoutTest) ... ERROR
test_ftp_timeout (test.test_urllib2net.TimeoutTest) ... ERROR
test_http_basic (test.test_urllib2net.TimeoutTest) ... ok
test_http_default_timeout (test.test_urllib2net.TimeoutTest) ... ok
test_http_no_timeout (test.test_urllib2net.TimeoutTest) ... ok
test_http_timeout (test.test_urllib2net.TimeoutTest) ... ok
======================================================================
ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests) (url='ftp://www.pythontest.net/README')
----------------------------------------------------------------------
======================================================================
ERROR: test_ftp_basic (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
======================================================================
ERROR: test_ftp_default_timeout (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
======================================================================
ERROR: test_ftp_no_timeout (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
======================================================================
ERROR: test_ftp_timeout (test.test_urllib2net.TimeoutTest)
----------------------------------------------------------------------
Ran 15 tests in 5.693s
FAILED (errors=5, skipped=1)
/home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33712), raddr=('104.236.16.9', 21)>
gc.collect()
/home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33716), raddr=('104.236.16.9', 21)>
gc.collect()
/home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33720), raddr=('104.236.16.9', 21)>
gc.collect()
/home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33724), raddr=('104.236.16.9', 21)>
gc.collect()
/home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33728), raddr=('104.236.16.9', 21)>
gc.collect()
/home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33732), raddr=('104.236.16.9', 21)>
gc.collect()
/home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33736), raddr=('104.236.16.9', 21)>
gc.collect()
/home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33740), raddr=('104.236.16.9', 21)>
gc.collect()
/home/travis/build/python/cpython/Lib/test/support/init.py:1535: ResourceWarning: unclosed <socket.socket fd=13, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.2.47', 33744), raddr=('104.236.16.9', 21)>
gc.collect()
test test_urllib2net failed
1 test failed again:
test_urllib2net
vstinner commentedon Dec 4, 2018
Another similar issue in a different project:
https://sagebionetworks.jira.com/browse/SYNPY-731
The fix... removed the test :-)
https://github.com/Sage-Bionetworks/synapsePythonClient/pull/571/files
vstinner commentedon Dec 4, 2018
According to my PR 10906, FTP tests of test_urllib2net now also fail each time on master (not all of them, at least two tests fail).
I wrote PR 10907 to skip the tests on Travis CI. We have AppVeyor to run these tests in pre-commit, and the buildbot farm to test in post-commit.
vstinner commentedon Dec 5, 2018
New changeset c11b3b1 by Victor Stinner in branch 'master':
bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907)
c11b3b1
miss-islington commentedon Dec 5, 2018
New changeset 74a80e1 by Miss Islington (bot) in branch '3.7':
bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907)
74a80e1
vstinner commentedon Dec 5, 2018
New changeset 65a5eff by Victor Stinner (Miss Islington (bot)) in branch '3.6':
bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) (GH-10909)
65a5eff
miss-islington commentedon Dec 5, 2018
New changeset c7976da by Miss Islington (bot) in branch '2.7':
bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907)
c7976da
vstinner commentedon Dec 5, 2018
Nathaniel Smith has an explanation.
[Python-Dev] test_urllib2net fixed to repair Travis CI
https://mail.python.org/pipermail/python-dev/2018-December/155929.html
Travis is in the middle of moving everything from AWS to GCE, which is
probably related:
https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
As noted there, GCE has different IP addresses. But I suspect it's not the
new IP address that's the problem, but rather the fact that the GCE setup
is known to break outgoing ftp:
https://blog.travis-ci.com/2018-07-23-the-tale-of-ftp-at-travis-ci
-n
serhiy-storchaka commentedon Dec 6, 2018
test_urllib2net still fails on Travis CI. See for example https://api.travis-ci.org/v3/job/464509821/log.txt.
vstinner commentedon Dec 7, 2018
Do you have a reference to the pull request?
"ERROR: test_ftp_default_timeout (test.test_urllib2net.TimeoutTest)"
It seems like Travis CI ran an outdated version of date. Likely a pull request that hasn't been merged into master. See my email:
https://mail.python.org/pipermail/python-dev/2018-December/155928.html
If your wrote the PR before my fix and the test fails, you have to update your PR.
serhiy-storchaka commentedon Dec 7, 2018
Seems this is a glitch of Travis CI. PR 794 was created long time ago, and while it was regularly merged with master, tests become failing after recent updated. I expect that similar issues can be repeated with other old PRs.
After creating a copy of that PR (see PR 11017), all tests are passed.
larryhastings commentedon Feb 25, 2019
New changeset 8bcbc78 by larryhastings (Victor Stinner) in branch '3.5':
bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) (bpo-11874)
8bcbc78
orsenthil commentedon Dec 31, 2019
New changeset f82e59a by Senthil Kumaran in branch '2.7':
[2.7] bpo-27973 - Fix for urllib.urlretrieve() failing on second ftp transfer (bpo-1040)
f82e59a