summaryrefslogtreecommitdiff
path: root/Lib/test/test_urllib2net.py
diff options
context:
space:
mode:
authorAmmar Askar <ammar_askar@hotmail.com>2017-07-18 19:27:24 -0700
committerBerker Peksag <berker.peksag@gmail.com>2017-07-19 05:27:24 +0300
commitd81bea6520892e0428aec61c73e0631a69db11bb (patch)
treef5817ac6912cdb3afb6dc6ec1249ff577a06a0f7 /Lib/test/test_urllib2net.py
parentf776eb0f0e046f2fa3a96540bb42d8cf970f6c55 (diff)
downloadcpython-git-d81bea6520892e0428aec61c73e0631a69db11bb.tar.gz
Use pythontest.net instead of debian.org in test_urllib2net (GH-2755)
Diffstat (limited to 'Lib/test/test_urllib2net.py')
-rw-r--r--Lib/test/test_urllib2net.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
index cad83fd5aa..13e2dd5b78 100644
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -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())