From: Ammar Askar Date: Wed, 19 Jul 2017 04:07:49 +0000 (-0700) Subject: [2.7] bpo-30883: Use pythontest.net instead of debian.org in test_urllib2net (GH... X-Git-Tag: v2.7.14rc1~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a739000db55ef55e69a53ca6966ea8657cac4354;p=python [2.7] bpo-30883: Use pythontest.net instead of debian.org in test_urllib2net (GH-2755) --- diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py index 8eec3ad092..89ee75919c 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())