diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-08-31 13:34:09 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-08-31 13:34:09 (GMT) |
commit | 2ad5421dad86bc95aabe5c77f6034ee6ca699992 (patch) | |
tree | bbf0cdb9e99b8913aec6326cc378b96445a11415 /Lib/test/test_ntpath.py | |
parent | 3f48d394930097724d5eb01499896d52ced4c4fc (diff) | |
download | cpython-2ad5421dad86bc95aabe5c77f6034ee6ca699992.zip cpython-2ad5421dad86bc95aabe5c77f6034ee6ca699992.tar.gz cpython-2ad5421dad86bc95aabe5c77f6034ee6ca699992.tar.bz2 |
don't index outside of the path (closes #22312)
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r-- | Lib/test/test_ntpath.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 78af18c..7b5f7bb 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -50,6 +50,7 @@ class TestNtpath(unittest.TestCase): # Issue #19911: UNC part containing U+0130 self.assertEqual(ntpath.splitdrive(u'//conky/MOUNTPOİNT/foo/bar'), (u'//conky/MOUNTPOİNT', '/foo/bar')) + self.assertEqual(ntpath.splitdrive("//"), ("", "//")) def test_splitunc(self): tester('ntpath.splitunc("c:\\foo\\bar")', |