mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| pydoc_mod.py | ||
| pydocfodder.py | ||
| test_pydoc.py | ||