mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Fix Issue6631 - Disallow relative files paths in urllib*.open()
This commit is contained in:
parent
631c258000
commit
58c6062068
3 changed files with 7 additions and 0 deletions
|
|
@ -126,6 +126,8 @@ class OtherNetworkTests(unittest.TestCase):
|
|||
finally:
|
||||
os.remove(TESTFN)
|
||||
|
||||
self.assertRaises(ValueError, urllib2.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