SIGN IN SIGN UP

[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>
M
Miss Islington (bot) committed
63205e5692041c59283b8fa667310d12fd5846ee
Parent: 3e7e39c
Committed by GitHub <noreply@github.com> on 11/9/2023, 3:37:04 PM