[Python-checkins] cpython (2.7): ssue #23881: ftp://gatekeeper.research.compaq.com/ and ftp://ftp.debian.org/

victor.stinner python-checkins at python.org
Tue Apr 7 13:00:33 CEST 2015


https://hg.python.org/cpython/rev/225be6be3893
changeset:   95471:225be6be3893
branch:      2.7
parent:      95466:69d4e199b88e
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Apr 07 12:59:14 2015 +0200
summary:
  ssue #23881: ftp://gatekeeper.research.compaq.com/ and ftp://ftp.debian.org/
are down, don't use anymore in test_urllib2net

ftp.kernel.org is also slow or down, so reuse the same FTP servers than Python
3.4 and 3.5: use ftp.debian.org instead.

files:
  Lib/test/test_urllib2net.py |  10 ++++------
  1 files changed, 4 insertions(+), 6 deletions(-)


diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -102,11 +102,9 @@
 
     def test_ftp(self):
         urls = [
-            'ftp://ftp.kernel.org/pub/linux/kernel/README',
-            'ftp://ftp.kernel.org/pub/linux/kernel/non-existent-file',
-            #'ftp://ftp.kernel.org/pub/leenox/kernel/test',
-            'ftp://gatekeeper.research.compaq.com/pub/DEC/SRC'
-                '/research-reports/00README-Legal-Rules-Regs',
+            'ftp://ftp.debian.org/debian/README',
+            ('ftp://ftp.debian.org/debian/non-existent-file',
+             None, urllib2.URLError),
             ]
         self._test_urls(urls, self._extra_handlers())
 
@@ -284,7 +282,7 @@
             u = _urlopen_with_retry(url, timeout=120)
             self.assertEqual(u.fp._sock.fp._sock.gettimeout(), 120)
 
-    FTP_HOST = "ftp://ftp.mirror.nl/pub/gnu/"
+    FTP_HOST = 'ftp://ftp.debian.org/debian/'
 
     def test_ftp_basic(self):
         self.assertIsNone(socket.getdefaulttimeout())

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list