Skip to content

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 13, 2019

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://bugs.python.org/issue6689
(cherry picked from commit 9549203)

Co-authored-by: Makdon makdon@makdon.me

https://bugs.python.org/issue6689

…sn't documented (pythonGH-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
(cherry picked from commit 9549203)

Co-authored-by: Makdon <makdon@makdon.me>
@miss-islington
Copy link
Contributor Author

@MakDon: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit ec3839a into python:3.8 Jun 13, 2019
@miss-islington miss-islington deleted the backport-9549203-3.8 branch June 13, 2019 14:13
@miss-islington
Copy link
Contributor Author

@MakDon: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants