cpython (2.7): use pythontest.net for url fragment test
https://hg.python.org/cpython/rev/603bd221527c changeset: 93391:603bd221527c branch: 2.7 parent: 93385:4c260cf1ba39 user: Benjamin Peterson <benjamin@python.org> date: Wed Nov 05 11:27:14 2014 -0500 summary: use pythontest.net for url fragment test files: Lib/test/test_urllib2net.py | 4 ++-- 1 files changed, 2 insertions(+), 2 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 @@ -155,12 +155,12 @@ ## self._test_urls(urls, self._extra_handlers()+[bauth, dauth]) def test_urlwithfrag(self): - urlwith_frag = "https://docs.python.org/2/glossary.html#glossary" + urlwith_frag = "http://www.pythontest.net/index.html#frag" with test_support.transient_internet(urlwith_frag): req = urllib2.Request(urlwith_frag) res = urllib2.urlopen(req) self.assertEqual(res.geturl(), - "https://docs.python.org/2/glossary.html#glossary") + "http://www.pythontest.net/index.html#frag") def test_fileno(self): req = urllib2.Request("http://www.example.com") -- Repository URL: https://hg.python.org/cpython
participants (1)
-
benjamin.peterson