summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-02-20 22:19:04 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-02-20 22:19:04 (GMT)
commit734f05925ef57e34e13efd501a47556a98ea3085 (patch)
treead8b05aae61a0a9f5bfdeff7ed0f49dcb248a276 /Lib/test/test_urllib.py
parenta11865b8c6dff87bc18b23cded2ea554dd190bb7 (diff)
downloadcpython-734f05925ef57e34e13efd501a47556a98ea3085.zip
cpython-734f05925ef57e34e13efd501a47556a98ea3085.tar.gz
cpython-734f05925ef57e34e13efd501a47556a98ea3085.tar.bz2
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.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index 02d08d4..597678d 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -112,7 +112,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):
@@ -866,6 +865,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