mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
This commit is contained in:
parent
280e9f7ce5
commit
ea24dda01f
3 changed files with 9 additions and 9 deletions
|
@ -493,6 +493,10 @@ class UrlParseTestCase(unittest.TestCase):
|
|||
('s3','foo.com','/stuff','','',''))
|
||||
self.assertEqual(urlparse.urlparse("x-newscheme://foo.com/stuff"),
|
||||
('x-newscheme','foo.com','/stuff','','',''))
|
||||
self.assertEqual(urlparse.urlparse("x-newscheme://foo.com/stuff?query#fragment"),
|
||||
('x-newscheme','foo.com','/stuff','','query','fragment'))
|
||||
self.assertEqual(urlparse.urlparse("x-newscheme://foo.com/stuff?query"),
|
||||
('x-newscheme','foo.com','/stuff','','query',''))
|
||||
|
||||
def test_withoutscheme(self):
|
||||
# Test urlparse without scheme
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue