summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-04-20 20:42:50 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-04-20 20:42:50 (GMT)
commit2eaef05c4727f9eb4abda89eba5dd90053cfcb41 (patch)
treea29d2c46a104804e7ad167f1d1b7eecac93776cb /Lib/test
parent712979d2928d6c1d252b61095d234506c99ac19c (diff)
downloadcpython-2eaef05c4727f9eb4abda89eba5dd90053cfcb41.zip
cpython-2eaef05c4727f9eb4abda89eba5dd90053cfcb41.tar.gz
cpython-2eaef05c4727f9eb4abda89eba5dd90053cfcb41.tar.bz2
Merged revisions 80277 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80277 | senthil.kumaran | 2010-04-21 02:07:59 +0530 (Wed, 21 Apr 2010) | 3 lines Issue2987 - Added additional Invalid URL and changed the Invalid URL checking code for better. ........
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_urlparse.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py
index 8c8070b..a0b2d77 100644
--- a/Lib/test/test_urlparse.py
+++ b/Lib/test/test_urlparse.py
@@ -273,6 +273,7 @@ class UrlParseTestCase(unittest.TestCase):
for invalid_url in [
'http://::12.34.56.78]/',
'http://[::1/foo/',
+ '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))