classification
Title: use pkgutil.resolve_name in unittest.mock
Type: Stage:
Components: Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: graingert, miss-islington
Priority: normal Keywords:

Created on 2021-07-20 19:29 by graingert, last changed 2021-07-21 11:48 by miss-islington.

Pull Requests
URL Status Linked Edit
PR 18544 merged graingert, 2021-07-20 19:29
Messages (2)
msg397905 - (view) Author: Thomas Grainger (graingert) * Date: 2021-07-20 19:29
per https://bugs.python.org/issue12915 pkgutil.resolve_name was added for use in mock and other stdlib modules:

> pydoc has locate and resolve, packaging has util.resolve_name, unittest has something else, etc.
msg397940 - (view) Author: miss-islington (miss-islington) Date: 2021-07-21 11:48
New changeset ab7fcc8fbdc11091370deeb000a787fb02f9b13d by Thomas Grainger in branch 'main':
bpo-44686 replace unittest.mock._importer with pkgutil.resolve_name (GH-18544)
https://github.com/python/cpython/commit/ab7fcc8fbdc11091370deeb000a787fb02f9b13d
History
Date User Action Args
2021-07-21 11:48:13miss-islingtonsetnosy: + miss-islington
messages: + msg397940
2021-07-20 19:29:08graingertcreate