mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
add support for svn: and svn+ssh: URL schemes to urlparse
This commit is contained in:
parent
c320c22f79
commit
50747fc1b9
2 changed files with 7 additions and 1 deletions
|
@ -35,6 +35,11 @@ class UrlParseTestCase(unittest.TestCase):
|
||||||
'', '', ''),
|
'', '', ''),
|
||||||
('mms', 'wms.sys.hinet.net', '/cts/Drama/09006251100.asf',
|
('mms', 'wms.sys.hinet.net', '/cts/Drama/09006251100.asf',
|
||||||
'', '')),
|
'', '')),
|
||||||
|
('svn+ssh://svn.zope.org/repos/main/ZConfig/trunk/',
|
||||||
|
('svn+ssh', 'svn.zope.org', '/repos/main/ZConfig/trunk/',
|
||||||
|
'', '', ''),
|
||||||
|
('svn+ssh', 'svn.zope.org', '/repos/main/ZConfig/trunk/',
|
||||||
|
'', ''))
|
||||||
]
|
]
|
||||||
for url, parsed, split in testcases:
|
for url, parsed, split in testcases:
|
||||||
self.checkRoundtrips(url, parsed, split)
|
self.checkRoundtrips(url, parsed, split)
|
||||||
|
|
|
@ -13,7 +13,8 @@ uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
|
||||||
'prospero', 'rtsp', 'rtspu', '']
|
'prospero', 'rtsp', 'rtspu', '']
|
||||||
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
|
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
|
||||||
'imap', 'wais', 'file', 'mms', 'https', 'shttp',
|
'imap', 'wais', 'file', 'mms', 'https', 'shttp',
|
||||||
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '']
|
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
|
||||||
|
'svn', 'svn+ssh']
|
||||||
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
|
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
|
||||||
'telnet', 'wais', 'imap', 'snews', 'sip']
|
'telnet', 'wais', 'imap', 'snews', 'sip']
|
||||||
uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',
|
uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue