diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-02-20 22:05:34 +0000 |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-02-20 22:05:34 +0000 |
commit | 18d5a6966980387051e5c1012d9a87a46eda3d34 (patch) | |
tree | 04a2db610a70093c77e619ec9895ea553e970c15 /Lib/test | |
parent | e3467d5c960f4ec5f0cca5dfa5b3a0a02a19cfb3 (diff) | |
download | cpython-git-18d5a6966980387051e5c1012d9a87a46eda3d34.tar.gz |
Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_urllib.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 1d7fd7324e..1cf8e4487b 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -93,7 +93,6 @@ class urlopen_FileTests(unittest.TestCase): for line in self.returned_obj.__iter__(): self.assertEqual(line, self.text) - class ProxyTests(unittest.TestCase): def setUp(self): @@ -607,6 +606,11 @@ class URLopener_Tests(unittest.TestCase): self.assertEqual(DummyURLopener().open( 'spam://example/ /'),'//example/%20/') + # test the safe characters are not quoted by urlopen + self.assertEqual(DummyURLopener().open( + "spam://c:|windows%/:=&?~#+!$,;'@()*[]|/path/"), + "//c:|windows%/:=&?~#+!$,;'@()*[]|/path/") + # Just commented them out. # Can't really tell why keep failing in windows and sparc. |