mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix Issue6631 - Disallow relative file paths in urllib urlopen
This commit is contained in:
parent
002890861f
commit
3800ea9f65
4 changed files with 9 additions and 0 deletions
|
@ -125,6 +125,8 @@ class OtherNetworkTests(unittest.TestCase):
|
|||
finally:
|
||||
os.remove(TESTFN)
|
||||
|
||||
self.assertRaises(ValueError, urllib.request.urlopen,'./relative_path/to/file')
|
||||
|
||||
# XXX Following test depends on machine configurations that are internal
|
||||
# to CNRI. Need to set up a public server with the right authentication
|
||||
# configuration for test purposes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue