summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-18 09:44:02 (GMT)
committerGitHub <noreply@github.com>2024-06-18 09:44:02 (GMT)
commit4b53ea822c0c52fa2f0d62728b6573a120f15574 (patch)
tree576574fbb9ea505a715a8874218a910d79bf9387 /Python
parente4f1fed5f6bb788d6d5a86bdbb770d25066636d1 (diff)
downloadcpython-4b53ea822c0c52fa2f0d62728b6573a120f15574.zip
cpython-4b53ea822c0c52fa2f0d62728b6573a120f15574.tar.gz
cpython-4b53ea822c0c52fa2f0d62728b6573a120f15574.tar.bz2
[3.12] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) (GH-120670)
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')
0 files changed, 0 insertions, 0 deletions