diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2011-04-12 23:01:19 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2011-04-12 23:01:19 (GMT) |
commit | 26430419703f925a9b6206ec96780ae899b6dd06 (patch) | |
tree | f6635d01d63acf63aa1a42d093a670e42ae64cc6 /Lib/test/test_urllib2net.py | |
parent | 3780542039d109ae747816dae208208be93240d6 (diff) | |
download | cpython-26430419703f925a9b6206ec96780ae899b6dd06.zip cpython-26430419703f925a9b6206ec96780ae899b6dd06.tar.gz cpython-26430419703f925a9b6206ec96780ae899b6dd06.tar.bz2 |
Fix Issue11703 - urllib2.geturl() does not return correct url when the original url contains #fragment. Patch Contribution by Santoso Wijaya.
Diffstat (limited to 'Lib/test/test_urllib2net.py')
-rw-r--r-- | Lib/test/test_urllib2net.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py index 63e25b4..e6c4ec1 100644 --- a/Lib/test/test_urllib2net.py +++ b/Lib/test/test_urllib2net.py @@ -158,7 +158,7 @@ class OtherNetworkTests(unittest.TestCase): req = urllib.request.Request(urlwith_frag) res = urllib.request.urlopen(req) self.assertEqual(res.geturl(), - "http://docs.python.org/glossary.html") + "http://docs.python.org/glossary.html#glossary") def test_custom_headers(self): url = "http://www.example.com" |