[2.7] bpo-30883: Use pythontest.net instead of debian.org in test_url… · python/cpython@a739000

Original file line numberDiff line numberDiff line change

@@ -102,8 +102,8 @@ def setUp(self):

102102
103103

def test_ftp(self):

104104

urls = [

105-

'ftp://ftp.debian.org/debian/README',

106-

('ftp://ftp.debian.org/debian/non-existent-file',

105+

'ftp://www.pythontest.net/README',

106+

('ftp://www.pythontest.net/non-existent-file',

107107

None, urllib2.URLError),

108108

]

109109

self._test_urls(urls, self._extra_handlers())

@@ -282,7 +282,7 @@ def test_http_timeout(self):

282282

u = _urlopen_with_retry(url, timeout=120)

283283

self.assertEqual(u.fp._sock.fp._sock.gettimeout(), 120)

284284
285-

FTP_HOST = 'ftp://ftp.debian.org/debian/'

285+

FTP_HOST = 'ftp://www.pythontest.net/'

286286
287287

def test_ftp_basic(self):

288288

self.assertIsNone(socket.getdefaulttimeout())