]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111881: Import doctest lazily in libregrtest (#111884)
authorVictor Stinner <vstinner@python.org>
Thu, 9 Nov 2023 15:00:10 +0000 (16:00 +0100)
committerGitHub <noreply@github.com>
Thu, 9 Nov 2023 15:00:10 +0000 (15:00 +0000)
commit6f09f69b7f85962f66d10637c3325bbb2b2d9853
tree8c017d9a670d4e9ea0b81688e0cebfaddb0fa9da
parent2f2a0a3a6c5494bcf13a8f587c28e30d86617ff0
gh-111881: Import doctest lazily in libregrtest (#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.
Lib/test/libregrtest/single.py