mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")
This commit is contained in:
parent
e3467d5c96
commit
18d5a69669
2 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue