[Python-checkins] r79990 - in python/branches/py3k: Lib/test/test_urlparse.py
senthil.kumaran
python-checkins at python.org
Mon Apr 12 09:03:17 CEST 2010
Author: senthil.kumaran
Date: Mon Apr 12 09:03:17 2010
New Revision: 79990
Log:
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)
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/test/test_urlparse.py
Modified: python/branches/py3k/Lib/test/test_urlparse.py
==============================================================================
--- python/branches/py3k/Lib/test/test_urlparse.py (original)
+++ python/branches/py3k/Lib/test/test_urlparse.py Mon Apr 12 09:03:17 2010
@@ -142,7 +142,7 @@
(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)
More information about the Python-checkins
mailing list