gh-108303: Move all pydoc related test files to new test.test_pydoc package (#114506)

This commit is contained in:
Nikita Sobolev 2024-02-13 13:40:40 +03:00 committed by GitHub
parent ca3604a3e3
commit ccc76c3e88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 34 additions and 27 deletions

View file

@ -552,7 +552,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: