Fix Issue8657 - adding git and git+ssh as know schemes.
This commit is contained in:
parent
62f7e8b0b8
commit
81a0450cb5
|
@ -103,6 +103,11 @@ class UrlParseTestCase(unittest.TestCase):
|
|||
('svn+ssh', 'svn.zope.org', '/repos/main/ZConfig/trunk/',
|
||||
'', '', ''),
|
||||
('svn+ssh', 'svn.zope.org', '/repos/main/ZConfig/trunk/',
|
||||
'', '')),
|
||||
('git+ssh://git@github.com/user/project.git',
|
||||
('git+ssh', 'git@github.com','/user/project.git',
|
||||
'','',''),
|
||||
('git+ssh', 'git@github.com','/user/project.git',
|
||||
'', ''))
|
||||
]
|
||||
for url, parsed, split in testcases:
|
||||
|
|
|
@ -38,7 +38,7 @@ uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
|
|||
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
|
||||
'imap', 'wais', 'file', 'mms', 'https', 'shttp',
|
||||
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
|
||||
'svn', 'svn+ssh', 'sftp','nfs']
|
||||
'svn', 'svn+ssh', 'sftp','nfs','git', 'git+ssh']
|
||||
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
|
||||
'telnet', 'wais', 'imap', 'snews', 'sip', 'sips']
|
||||
uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',
|
||||
|
|
Loading…
Reference in New Issue