mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Merged revisions 82780 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82780 | senthil.kumaran | 2010-07-11 08:42:43 +0530 (Sun, 11 Jul 2010) | 3 lines Stricter verification for file based url scheme and reliance on ftp protocol. ........
This commit is contained in:
parent
a755e14d14
commit
3402414b85
2 changed files with 5 additions and 1 deletions
|
@ -736,6 +736,8 @@ class HandlerTests(unittest.TestCase):
|
|||
("file://ftp.example.com///foo.txt", False),
|
||||
# XXXX bug: fails with OSError, should be URLError
|
||||
("file://ftp.example.com/foo.txt", False),
|
||||
("file://somehost//foo/something.txt", True),
|
||||
("file://localhost//foo/something.txt", False),
|
||||
]:
|
||||
req = Request(url)
|
||||
try:
|
||||
|
@ -746,6 +748,7 @@ class HandlerTests(unittest.TestCase):
|
|||
else:
|
||||
self.assertTrue(o.req is req)
|
||||
self.assertEqual(req.type, "ftp")
|
||||
self.assertEqual(req.type is "ftp", ftp)
|
||||
|
||||
def test_http(self):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue