]> granicus.if.org Git - python/commit
bpo-6689: os.path.commonpath raises ValueError for different drives isn't documented...
authorMakdon <makdon@makdon.me>
Thu, 13 Jun 2019 13:59:49 +0000 (21:59 +0800)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 13 Jun 2019 13:59:49 +0000 (06:59 -0700)
commit95492032c48fef20b9c7076a23fe7e46927a4688
treeea5ce95527b7b33553e3d07af9450d2e22389b71
parent6d22cc8e90ccb1e1965b1a4bc79456e2cc1e5a3e
bpo-6689: os.path.commonpath raises ValueError for different drives isn't documented (GH-14045)

It would raise ValueError("Paths don't have the same drive") if the paths on different drivers, which is not documented.

os.path.commonpath raises ValueError when the *paths* are in different drivers, but it is not documented.
Update the document according @Windsooon 's suggestion.
It actually raise ValueError according line 355 of [test of path](https://github.com/python/cpython/blob/master/Lib/test/test_ntpath.py)

https://bugs.python.org/issue6689
Doc/library/os.path.rst