summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urlparse.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-04-22 12:10:13 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-04-22 12:10:13 (GMT)
commit398246169cfcfeaaab60fc047edbdbcf668ca24b (patch)
treeb3dfd4c918b84dd746693e8caebec23f43d0f4a9 /Lib/test/test_urlparse.py
parent19c06739c5a294538a9b233dd4de9301871d0b60 (diff)
downloadcpython-398246169cfcfeaaab60fc047edbdbcf668ca24b.zip
cpython-398246169cfcfeaaab60fc047edbdbcf668ca24b.tar.gz
cpython-398246169cfcfeaaab60fc047edbdbcf668ca24b.tar.bz2
Changed tests to only urlparse one, which was enough, addressed Ezio's comment
on Invalid url check statement and versionchanged string in docs.
Diffstat (limited to 'Lib/test/test_urlparse.py')
-rw-r--r--Lib/test/test_urlparse.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py
index c25b6e0..efbdd1e 100644
--- a/Lib/test/test_urlparse.py
+++ b/Lib/test/test_urlparse.py
@@ -272,10 +272,10 @@ class UrlParseTestCase(unittest.TestCase):
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 : urlparse.urlparse(invalid_url).hostname)
- self.assertRaises(ValueError, lambda : urlparse.urlparse(invalid_url))
+ self.assertRaises(ValueError, urlparse.urlparse, invalid_url)
def test_urldefrag(self):
for url, defrag, frag in [