Skip to content

Commit

Permalink
[3.5] bpo-30883: Use pythontest.net instead of debian.org in test_url…
Browse files Browse the repository at this point in the history
…lib2net (GH-2755)
  • Loading branch information
ammaraskar authored and berkerpeksag committed Jul 20, 2017
1 parent cb3f024 commit aca493b
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit aca493b

Please sign in to comment.