mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Fix Issue11703 - urllib2.geturl() does not return correct url when the original url contains #fragment. Patch Contribution by Santoso Wijaya.
This commit is contained in:
parent
3780542039
commit
2643041970
4 changed files with 31 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue