diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-18 09:54:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-18 09:54:55 (GMT) |
commit | 451cb71cc820cce5f250c507cecf15d34f181157 (patch) | |
tree | 327376a0341bfcb3a82d5aad21d46c92bcab4ebe /Python/flowgraph.c | |
parent | 71ad34d2190a1f16ac7dbc70b8bce8c6b2549109 (diff) | |
download | cpython-451cb71cc820cce5f250c507cecf15d34f181157.zip cpython-451cb71cc820cce5f250c507cecf15d34f181157.tar.gz cpython-451cb71cc820cce5f250c507cecf15d34f181157.tar.bz2 |
[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 2cf47389e26cb591342d07dad98619916d5a1b15)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/flowgraph.c')
0 files changed, 0 insertions, 0 deletions