diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-01-21 03:55:40 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-01-21 03:55:40 (GMT) |
commit | 3242577a0875c08a7fb714628a7f0ee58813cece (patch) | |
tree | e323e43adf93835ebe9733c1a65aba68b86e3cb6 /Lib/test/test_urllib.py | |
parent | 77fc1f3c066e244768faa37b52db7415906251f3 (diff) | |
parent | 3800ea9f652817e510a0db27bf124d2b80e7be10 (diff) | |
download | cpython-3242577a0875c08a7fb714628a7f0ee58813cece.zip cpython-3242577a0875c08a7fb714628a7f0ee58813cece.tar.gz cpython-3242577a0875c08a7fb714628a7f0ee58813cece.tar.bz2 |
merge from 3.2
Diffstat (limited to 'Lib/test/test_urllib.py')
-rw-r--r-- | Lib/test/test_urllib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 4cb4682..e403bbf 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -160,6 +160,9 @@ class urlopen_FileTests(unittest.TestCase): for line in self.returned_obj: self.assertEqual(line, self.text) + def test_relativelocalfile(self): + self.assertRaises(ValueError,urllib.request.urlopen,'./' + self.pathname) + class ProxyTests(unittest.TestCase): def setUp(self): |