mirror of
https://github.com/python/cpython.git
synced 2025-10-28 20:25:04 +00:00
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
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| pydoc_mod.py | ||
| pydocfodder.py | ||
| test_pydoc.py | ||