This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [doc] unittest.doModuleCleanups() does not exist
Type: behavior Stage: resolved
Components: Documentation, Library (Lib) Versions: Python 3.11, Python 3.10, Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, gvanrossum, kumaraditya, lisroach, michael.foord, push-f, xtreak
Priority: normal Keywords: patch

Created on 2022-02-28 06:41 by push-f, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 31611 closed kumaraditya, 2022-02-28 11:10
PR 31613 merged kumaraditya, 2022-02-28 11:12
Messages (2)
msg414177 - (view) Author: Martin Fischer (push-f) * Date: 2022-02-28 06:41
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
msg414459 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2022-03-03 18:41
New changeset cc400585fab02994255f21ae8183d5f147236815 by Kumar Aditya in branch 'main':
bpo-46877: export unittest.doModuleCleanups in unittest package (#31613)
https://github.com/python/cpython/commit/cc400585fab02994255f21ae8183d5f147236815
History
Date User Action Args
2022-04-11 14:59:56adminsetgithub: 91033
2022-03-03 18:43:29gvanrossumsetstatus: open -> closed
type: enhancement -> behavior
resolution: fixed
components: + Library (Lib)
stage: patch review -> resolved
2022-03-03 18:41:57gvanrossumsetnosy: + gvanrossum
messages: + msg414459
2022-02-28 11:12:19kumaradityasetpull_requests: + pull_request29738
2022-02-28 11:10:31kumaradityasetkeywords: + patch
stage: patch review
pull_requests: + pull_request29737
2022-02-28 11:07:50kumaradityasetnosy: + kumaraditya
2022-02-28 10:42:23push-fsettitle: unittest.doModuleCleanups() does not exist -> [doc] unittest.doModuleCleanups() does not exist
2022-02-28 07:19:18xtreaksetnosy: + xtreak
2022-02-28 06:41:43push-fcreate