]> granicus.if.org Git - python/commit
bpo-35942: Improve the error message if __fspath__ returns invalid types in path_conv...
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 18 Feb 2019 10:46:34 +0000 (10:46 +0000)
committerGitHub <noreply@github.com>
Mon, 18 Feb 2019 10:46:34 +0000 (10:46 +0000)
commit09fbcd6085e18b534fd4161844ff39f77eb4a082
tree18814d4cc2ac1949afac68a27474645973f835f5
parentac28147e78c45a6217d348ce90ca5281d91f676f
bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-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.
Lib/test/test_os.py
Misc/NEWS.d/next/Core and Builtins/2019-02-18-09-30-55.bpo-35942.oLhL2v.rst [new file with mode: 0644]
Modules/posixmodule.c