cpython/Lib/test/test_pydoc
Miss Islington (bot) 4b53ea822c
[3.12] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) (GH-120670)
Mocking only works if sys.modules['pydoc'] and pydoc are the same,
but some pydoc functions reload the module and change sys.modules.
Ensure that sys.modules['pydoc'] is always restored after the corresponding
tests.
(cherry picked from commit 2cf47389e2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-06-18 09:44:02 +00:00
..
__init__.py
pydoc_mod.py
pydocfodder.py
test_pydoc.py [3.12] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) (GH-120670) 2024-06-18 09:44:02 +00:00