[3.13] gh-128772: Fix pydoc for methods with __module__ is None (GH-129177) (GH-129653)

(cherry picked from commit 979d766209)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-02-05 15:42:51 +01:00 committed by GitHub
parent 19ceb342b5
commit 7eba097137
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 1 deletions

View file

@ -1875,6 +1875,11 @@ def a_fn_with_https_link():
html
)
def test_module_none(self):
# Issue #128772
from test.test_pydoc import module_none
pydoc.render_doc(module_none)
class PydocFodderTest(unittest.TestCase):
def tearDown(self):