Use pythontest.net instead of debian.org in test_urllib2net (GH-2755)

This commit is contained in:
Ammar Askar 2017-07-18 19:27:24 -07:00 committed by Berker Peksag
parent f776eb0f0e
commit d81bea6520
1 changed files with 3 additions and 3 deletions

View File

@ -97,8 +97,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, urllib.error.URLError),
]
self._test_urls(urls, self._extra_handlers())
@ -287,7 +287,7 @@ class TimeoutTest(unittest.TestCase):
self.addCleanup(u.close)
self.assertEqual(u.fp.raw._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())