]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 79990 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Mon, 12 Apr 2010 07:06:04 +0000 (07:06 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Mon, 12 Apr 2010 07:06:04 +0000 (07:06 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r79990 | senthil.kumaran | 2010-04-12 12:33:17 +0530 (Mon, 12 Apr 2010) | 9 lines

  Merged revisions 79988 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r79988 | senthil.kumaran | 2010-04-12 12:20:24 +0530 (Mon, 12 Apr 2010) | 3 lines

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

Lib/test/test_urlparse.py

index 165841184596761837ae770391230e9108f5f63b..1cac691b70e780bee1c2d89b4e1e2b3d66b22f71 100644 (file)
@@ -142,7 +142,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(urllib.parse.urlunsplit(urllib.parse.urlsplit(u)), u)
             self.assertEqual(urllib.parse.urlunparse(urllib.parse.urlparse(u)), u)