New submission from Martin Fischer :
The unittest documentation[1] describes unittest.doModuleCleanups().
That function however doesn't exist since it's only in the unittest.case module and not re-exported in the unittest module (unlike addModuleCleanup).
So I think either the documentation should be corrected or doModuleCleanups should be re-exported in unittest/__init__.py to match the documentation.
[1]: https://docs.python.org/3.8/library/unittest.html
----------
assignee: docs@python
components: Documentation
messages: 414177
nosy: docs@python, lisroach, michael.foord, push-f
priority: normal
severity: normal
status: open
title: unittest.doModuleCleanups() does not exist
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.8, Python 3.9
_______________________________________
Python tracker
https://bugs.python.org/issue46877
_______________________________________