mirror of
https://github.com/python/cpython.git
synced 2025-09-20 15:40:32 +00:00
Adding additional examples of valid urls as per RFC 3986 (for issue8339)
This commit is contained in:
parent
5a96543b36
commit
d10b65eb68
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ class UrlParseTestCase(unittest.TestCase):
|
|||
(base, relurl, expected))
|
||||
|
||||
def test_unparse_parse(self):
|
||||
for u in ['Python', './Python','x-newscheme://foo.com/stuff']:
|
||||
for u in ['Python', './Python','x-newscheme://foo.com/stuff','x://y','x:/y','x:/','/',]:
|
||||
self.assertEqual(urlparse.urlunsplit(urlparse.urlsplit(u)), u)
|
||||
self.assertEqual(urlparse.urlunparse(urlparse.urlparse(u)), u)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue