cpython/Lib/test/test_pydoc
Miss Islington (bot) 451cb71cc8
[3.13] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) (GH-120669)
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:54:55 +00:00
..
__init__.py
pydoc_mod.py
pydocfodder.py
test_pydoc.py [3.13] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) (GH-120669) 2024-06-18 09:54:55 +00:00