Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(85947)

Unified Diff: Lib/test/test_urllib2net.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_unicodedata.py ('k') | Lib/test/test_uuid.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_urllib2net.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/test/test_urllib2net.py Wed Mar 02 00:01:35 2016 +0000
@@ -143,24 +143,26 @@ class OtherNetworkTests(unittest.TestCas
## bauth.add_password('basic_test_realm', localhost, 'jhylton',
## 'password')
## dauth = HTTPDigestAuthHandler()
## dauth.add_password('digest_test_realm', localhost, 'jhylton',
## 'password')
## self._test_urls(urls, self._extra_handlers()+[bauth, dauth])
+ @unittest.skipIf(ssl is None, 'test requires ssl module')
def test_urlwithfrag(self):
urlwith_frag = "http://www.pythontest.net/index.html#frag"
with support.transient_internet(urlwith_frag):
req = urllib.request.Request(urlwith_frag)
res = urllib.request.urlopen(req)
self.assertEqual(res.geturl(),
"http://www.pythontest.net/index.html#frag")
+ @unittest.skipIf(ssl is None, 'test requires ssl module')
def test_redirect_url_withfrag(self):
redirect_url_with_frag = "http://www.pythontest.net/redir/with_frag/"
with support.transient_internet(redirect_url_with_frag):
req = urllib.request.Request(redirect_url_with_frag)
res = urllib.request.urlopen(req)
self.assertEqual(res.geturl(),
"http://www.pythontest.net/elsewhere/#frag")
« no previous file with comments | « Lib/test/test_unicodedata.py ('k') | Lib/test/test_uuid.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+