Skip to content

[3.7] bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-11831)#11912

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-09fbcd6-3.7
Feb 18, 2019
Merged

[3.7] bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-11831)#11912
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-09fbcd6-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Feb 18, 2019

Copy link
Copy Markdown
Contributor

The error message emitted when returning invalid types from fspath in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
(cherry picked from commit 09fbcd6)

Co-authored-by: Pablo Galindo Pablogsal@gmail.com

https://bugs.python.org/issue35942

…pes in path_converter (pythonGH-11831)

The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
(cherry picked from commit 09fbcd6)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

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

@miss-islington
miss-islington merged commit a01065a into python:3.7 Feb 18, 2019
@miss-islington
miss-islington deleted the backport-09fbcd6-3.7 branch February 18, 2019 11:05
@miss-islington

Copy link
Copy Markdown
Contributor Author

@pablogsal: 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

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants