mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
This commit is contained in:
parent
d73aca769f
commit
b6076fb13c
3 changed files with 11 additions and 1 deletions
|
@ -1029,6 +1029,14 @@ class PydocWithMetaClasses(unittest.TestCase):
|
|||
print_diffs(expected_text, result)
|
||||
self.fail("outputs are not equal, see diff above")
|
||||
|
||||
def test_resolve_false(self):
|
||||
# Issue #23008: pydoc enum.{,Int}Enum failed
|
||||
# because bool(enum.Enum) is False.
|
||||
with captured_stdout() as help_io:
|
||||
pydoc.help('enum.Enum')
|
||||
helptext = help_io.getvalue()
|
||||
self.assertIn('class Enum', helptext)
|
||||
|
||||
|
||||
@reap_threads
|
||||
def test_main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue