Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-30883: Change ftp tests to hit pythontest.net instead of debian.org #2755

Merged
merged 1 commit into from Jul 19, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Lib/test/test_urllib2net.py
Expand Up @@ -97,8 +97,8 @@ def setUp(self):

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())
Expand Down Expand Up @@ -287,7 +287,7 @@ def test_http_timeout(self):
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())
Expand Down