diff options
author | Ammar Askar <ammar_askar@hotmail.com> | 2017-07-19 04:07:49 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2017-07-19 04:07:49 (GMT) |
commit | a739000db55ef55e69a53ca6966ea8657cac4354 (patch) | |
tree | 59a9498a945850ddf590ec3fb991778eeccba774 /Lib | |
parent | 3dbe11a1219d148e4a133449a86ac5d157e35d35 (diff) | |
download | cpython-a739000db55ef55e69a53ca6966ea8657cac4354.zip cpython-a739000db55ef55e69a53ca6966ea8657cac4354.tar.gz cpython-a739000db55ef55e69a53ca6966ea8657cac4354.tar.bz2 |
[2.7] bpo-30883: Use pythontest.net instead of debian.org in test_urllib2net (GH-2755)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_urllib2net.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py index 8eec3ad..89ee759 100644 --- a/Lib/test/test_urllib2net.py +++ b/Lib/test/test_urllib2net.py @@ -102,8 +102,8 @@ class OtherNetworkTests(unittest.TestCase): def test_ftp(self): urls = [ - 'ftp://ftp.debian.org/debian/README', - ('ftp://ftp.debian.org/debian/non-existent-file', + 'ftp://www.pythontest.net/README', + ('ftp://www.pythontest.net/non-existent-file', None, urllib2.URLError), ] self._test_urls(urls, self._extra_handlers()) @@ -282,7 +282,7 @@ class TimeoutTest(unittest.TestCase): u = _urlopen_with_retry(url, timeout=120) self.assertEqual(u.fp._sock.fp._sock.gettimeout(), 120) - FTP_HOST = 'ftp://ftp.debian.org/debian/' + FTP_HOST = 'ftp://www.pythontest.net/' def test_ftp_basic(self): self.assertIsNone(socket.getdefaulttimeout()) |