[3.12] gh-108303: Move all pydoc related files to test_pydoc (GH-114506) (#115502)

(cherry picked from commit ccc76c3e88)
This commit is contained in:
Nikita Sobolev 2024-02-15 16:35:56 +03:00 committed by GitHub
parent 0e4f73b8e4
commit 9bc32cdc36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 32 additions and 25 deletions

View file

@ -529,7 +529,7 @@ class Doc:
'_thread', 'zipimport') or
(file.startswith(basedir) and
not file.startswith(os.path.join(basedir, 'site-packages')))) and
object.__name__ not in ('xml.etree', 'test.pydoc_mod')):
object.__name__ not in ('xml.etree', 'test.test_pydoc.pydoc_mod')):
if docloc.startswith(("http://", "https://")):
docloc = "{}/{}.html".format(docloc.rstrip("/"), object.__name__.lower())
else: