]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-111881: Import doctest lazily in libregrtest (GH-111884) (#111893)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 Nov 2023 15:40:10 +0000 (16:40 +0100)
committerGitHub <noreply@github.com>
Thu, 9 Nov 2023 15:40:10 +0000 (15:40 +0000)
commit5089faf954d2c6c07e1acfd5d270c331f7c6acdc
tree7cb5d58ccdda361449dbbffd3b0c74c6a7629714
parente983ca859de279682631dbb13b959f14a7d89a7b
[3.12] gh-111881: Import doctest lazily in libregrtest (GH-111884) (#111893)

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