diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-06-18 12:19:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-18 12:19:32 +0300 |
commit | 2cf47389e26cb591342d07dad98619916d5a1b15 (patch) | |
tree | 9cae9fe3701eb521acb2fbf188aadc73f260987b /Python/executor_cases.c.h | |
parent | ac37a806018cc40fafebcd0fa90250c3e0261e0c (diff) | |
download | cpython-2cf47389e26cb591342d07dad98619916d5a1b15.tar.gz cpython-2cf47389e26cb591342d07dad98619916d5a1b15.zip |
gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615)
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.
Diffstat (limited to 'Python/executor_cases.c.h')
0 files changed, 0 insertions, 0 deletions