[issue19912] ntpath.splitunc() is broken and not tested
Serhiy Storchaka
report at bugs.python.org
Fri Dec 6 20:02:51 CET 2013
New submission from Serhiy Storchaka:
ntpath.splitunc() returns illegal results when path contains redundant slashes.
>>> import ntpath
>>> ntpath.splitunc("\\\\\\conky\\mountpoint\\foo\\bar")
('\\\\\\conky', '\\mountpoint\\foo\\bar')
>>> ntpath.splitunc("///conky/mountpoint/foo/bar")
('///conky', '/mountpoint/foo/bar')
>>> ntpath.splitunc("\\\\conky\\\\mountpoint\\foo\\bar")
('\\\\conky\\', '\\mountpoint\\foo\\bar')
It also affected by a bug from issue19911.
It also emits warnings in wrong place (from stdlib, not from places where it is used).
It has no tests.
Proposed patch fixes these issues.
----------
assignee: serhiy.storchaka
components: Library (Lib), Tests
files: ntpath_splitunc.patch
keywords: patch
messages: 205394
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: ntpath.splitunc() is broken and not tested
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file33010/ntpath_splitunc.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19912>
_______________________________________
More information about the Python-bugs-list
mailing list