diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-02-20 22:30:21 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-02-20 22:30:21 (GMT) |
commit | 0e7e9aee59809762f929df04c638bf01ebd0ed4d (patch) | |
tree | 37e324ad113282774f7283ad676eea5acc12e427 /Lib/test/test_urllib.py | |
parent | 39440b14cd4481e138bce568d81663315f1f7cc4 (diff) | |
download | cpython-0e7e9aee59809762f929df04c638bf01ebd0ed4d.zip cpython-0e7e9aee59809762f929df04c638bf01ebd0ed4d.tar.gz cpython-0e7e9aee59809762f929df04c638bf01ebd0ed4d.tar.bz2 |
Merged revisions 78270 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r78270 | senthil.kumaran | 2010-02-21 03:49:04 +0530 (Sun, 21 Feb 2010) | 4 lines
Merged revisions 78268 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
Diffstat (limited to 'Lib/test/test_urllib.py')
-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 ad0c100..f4b3766 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -113,7 +113,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): @@ -868,6 +867,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. # Everywhere else they work ok, but on those machines, someteimes |