]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-111881: Import doctest lazily in libregrtest (GH-111884) (#111894)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 Nov 2023 15:37:04 +0000 (16:37 +0100)
committerGitHub <noreply@github.com>
Thu, 9 Nov 2023 15:37:04 +0000 (15:37 +0000)
commit63205e5692041c59283b8fa667310d12fd5846ee
treeb425f99af186ebb6156974563817a0525c01fa30
parent3e7e39c9777c21ea32e3deb29f6e5c96e416bb35
[3.11] gh-111881: Import doctest lazily in libregrtest (GH-111884) (#111894)

gh-111881: Import doctest lazily in libregrtest (GH-111884)

In most cases, doctest is not needed. So don't always import it at
startup. The change reduces the number of modules already
imported when a test is run.
(cherry picked from commit 6f09f69b7f85962f66d10637c3325bbb2b2d9853)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/libregrtest/single.py