[issue35022] MagicMock should support `__fspath__`
Maxime Belanger
report at bugs.python.org
Thu Oct 18 20:29:51 EDT 2018
New submission from Maxime Belanger <max at dropbox.com>:
We have plenty of tests calling into `os.path.*` functions, and as Python 3.6+ gets more stringent about checking for `os.PathLike` compliance, it would greatly simplify our lives for `MagicMock` to support `__fspath__`.
----------
components: Library (Lib)
messages: 328014
nosy: Maxime Belanger
priority: normal
severity: normal
status: open
title: MagicMock should support `__fspath__`
type: enhancement
versions: Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35022>
_______________________________________
More information about the Python-bugs-list
mailing list