diff options
| author | Senthil Kumaran <orsenthil@gmail.com> | 2010-07-11 03:18:51 (GMT) |
|---|---|---|
| committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-07-11 03:18:51 (GMT) |
| commit | 87ed31a4142f3c0adaf8acdcef8bf059e75293d0 (patch) | |
| tree | c08af8e2cfa0ec44dfe0c83abddaeb623849a04a /Lib/test/test_urllib2.py | |
| parent | 9d8c456696eb29a35ccca0e6705d7c5158683a2a (diff) | |
| download | cpython-87ed31a4142f3c0adaf8acdcef8bf059e75293d0.zip cpython-87ed31a4142f3c0adaf8acdcef8bf059e75293d0.tar.gz cpython-87ed31a4142f3c0adaf8acdcef8bf059e75293d0.tar.bz2 | |
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.
........
Diffstat (limited to 'Lib/test/test_urllib2.py')
| -rw-r--r-- | Lib/test/test_urllib2.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index b5a2437..23631f6 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -726,6 +726,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: @@ -736,6 +738,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): |
