]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-128923: fix test_pydoc for object subclasses without `__module__` (#128951)
authorT. Wouters <thomas@python.org>
Fri, 17 Jan 2025 22:43:17 +0000 (23:43 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Jan 2025 22:43:17 +0000 (23:43 +0100)
commitd4544cb232dee5f836a64b9126fbbefcbb6099de
tree28f8845a69e6c3fca656674d98b17616cd29715e
parent13c4def692228f09df0b30c5f93bc515e89fc77f
gh-128923: fix test_pydoc for object subclasses without `__module__` (#128951)

Fix pydoc's docclass() for classes inheriting from object without the `__module__` attribute, like `_testcapi.HeapType`.
Lib/pydoc.py
Lib/test/test_pydoc/test_pydoc.py