Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_urlparse.py @ 60859:87c98fb778b4
Merged revisions 80362 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80362 | senthil.kumaran | 2010-04-22 17:40:13 +0530 (Thu, 22 Apr 2010) | 4 lines
Changed tests to only urlparse one, which was enough, addressed Ezio's comment
on Invalid url check statement and versionchanged string in docs.
........
| author | Senthil Kumaran <orsenthil@gmail.com> |
|---|---|
| date | Thu, 22 Apr 2010 12:19:46 +0000 |
| parents | d1d209f2c803 |
| children | fe7e56f986cd |
line wrap: on
line diff
--- a/Lib/test/test_urlparse.py Thu Apr 22 12:08:36 2010 +0000 +++ b/Lib/test/test_urlparse.py Thu Apr 22 12:19:46 2010 +0000 @@ -273,10 +273,10 @@ for invalid_url in [ 'http://::12.34.56.78]/', 'http://[::1/foo/', + 'ftp://[::1/foo/bad]/bad', 'http://[::1/foo/bad]/bad', 'http://[::ffff:12.34.56.78']: - self.assertRaises(ValueError, lambda : urllib.parse.urlparse(invalid_url).hostname) - self.assertRaises(ValueError, lambda : urllib.parse.urlparse(invalid_url)) + self.assertRaises(ValueError, urllib.parse.urlparse, invalid_url) def test_urldefrag(self): for url, defrag, frag in [
