mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Changed tests to only urlparse one, which was enough, addressed Ezio's comment
on Invalid url check statement and versionchanged string in docs.
This commit is contained in:
parent
19c06739c5
commit
398246169c
3 changed files with 13 additions and 11 deletions
|
@ -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 [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue