[Python-checkins] r79988 - python/trunk/Lib/test/test_urlparse.py

senthil.kumaran python-checkins at python.org
Mon Apr 12 08:50:24 CEST 2010


Author: senthil.kumaran
Date: Mon Apr 12 08:50:24 2010
New Revision: 79988

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



Modified:
   python/trunk/Lib/test/test_urlparse.py

Modified: python/trunk/Lib/test/test_urlparse.py
==============================================================================
--- python/trunk/Lib/test/test_urlparse.py	(original)
+++ python/trunk/Lib/test/test_urlparse.py	Mon Apr 12 08:50:24 2010
@@ -141,7 +141,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(urlparse.urlunsplit(urlparse.urlsplit(u)), u)
             self.assertEqual(urlparse.urlunparse(urlparse.urlparse(u)), u)
 


More information about the Python-checkins mailing list