Commit d81bea65 authored by Ammar Askar's avatar Ammar Askar Committed by Berker Peksag

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

parent f776eb0f
...@@ -97,8 +97,8 @@ class OtherNetworkTests(unittest.TestCase): ...@@ -97,8 +97,8 @@ class OtherNetworkTests(unittest.TestCase):
def test_ftp(self): def test_ftp(self):
urls = [ urls = [
'ftp://ftp.debian.org/debian/README', 'ftp://www.pythontest.net/README',
('ftp://ftp.debian.org/debian/non-existent-file', ('ftp://www.pythontest.net/non-existent-file',
None, urllib.error.URLError), None, urllib.error.URLError),
] ]
self._test_urls(urls, self._extra_handlers()) self._test_urls(urls, self._extra_handlers())
...@@ -287,7 +287,7 @@ class TimeoutTest(unittest.TestCase): ...@@ -287,7 +287,7 @@ class TimeoutTest(unittest.TestCase):
self.addCleanup(u.close) self.addCleanup(u.close)
self.assertEqual(u.fp.raw._sock.gettimeout(), 120) 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): def test_ftp_basic(self):
self.assertIsNone(socket.getdefaulttimeout()) self.assertIsNone(socket.getdefaulttimeout())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment