mirror of https://github.com/python/cpython
451cb71cc8
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 |