]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-128816: Fix warnings in test_doctest (GH-128817) (GH-128871)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 16 Jan 2025 09:09:13 +0000 (10:09 +0100)
committerGitHub <noreply@github.com>
Thu, 16 Jan 2025 09:09:13 +0000 (09:09 +0000)
commit45b89bf0da69a1193e5c79029a118763512a1d04
tree5861acfc4528c778b867ad135f7ff20aabedbbf1
parent0308bcfa04edc2934c34fd00be38503d415c8bf2
[3.12] gh-128816: Fix warnings in test_doctest (GH-128817) (GH-128871)

* Fix a deprecation warning for using importlib.resources.abc.ResourceReader.
* Fix an import warning when importing readline (if it has not yet been imported).
(cherry picked from commit 599be687ec7327c30c6469cf743aa4ee9e82232d)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Lib/test/test_doctest/test_doctest.py