Commit d10b65eb authored by Senthil Kumaran's avatar Senthil Kumaran

Adding additional examples of valid urls as per RFC 3986 (for issue8339)

parent 5a96543b
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment