diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-10-14 11:57:35 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-10-14 11:57:35 (GMT) |
commit | 383c32dd3821828f271c0bf7bcf21f0ba71792e8 (patch) | |
tree | af0d55d8de4b60bfb1a4ce993a29b7387eb136b8 /Lib/test | |
parent | 6d7be5f86cf9eca0ab6f4c53b834e48f81ed6291 (diff) | |
download | cpython-383c32dd3821828f271c0bf7bcf21f0ba71792e8.zip cpython-383c32dd3821828f271c0bf7bcf21f0ba71792e8.tar.gz cpython-383c32dd3821828f271c0bf7bcf21f0ba71792e8.tar.bz2 |
Issue10063 - file:// scheme will stop accessing remote hosts via ftp protocol
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_urllib2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 5a168ee..8d59180 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -731,11 +731,11 @@ class HandlerTests(unittest.TestCase): # file:///blah.txt (a file) # file://ftp.example.com/blah.txt (an ftp URL) for url, ftp in [ - ("file://ftp.example.com//foo.txt", True), + ("file://ftp.example.com//foo.txt", False), ("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://somehost//foo/something.txt", False), ("file://localhost//foo/something.txt", False), ]: req = Request(url) |