mirror of
https://github.com/python/cpython.git
synced 2025-10-20 16:33:53 +00:00
gh-133210: Fix test_pydoc without docstrings (#139654)
This commit is contained in:
parent
69cfad0b3e
commit
708de26e31
1 changed files with 3 additions and 3 deletions
|
|
@ -1902,7 +1902,7 @@ def test_text_doc_routines_in_class(self, cls=pydocfodder.B):
|
|||
else:
|
||||
self.assertIn(' | get(...) method of builtins.dict instance', lines)
|
||||
self.assertIn(' | dict_get = get(...) method of builtins.dict instance', lines)
|
||||
self.assertIn(' | sin(...)', lines)
|
||||
self.assertIn(' | sin(object, /)', lines)
|
||||
|
||||
lines = self.getsection(result, f' | Class methods {where}:', ' | ' + '-'*70)
|
||||
self.assertIn(' | B_classmethod(x)', lines)
|
||||
|
|
@ -1992,7 +1992,7 @@ def test_text_doc_routines_in_module(self):
|
|||
if not support.MISSING_C_DOCSTRINGS:
|
||||
self.assertIn(' sin(x, /)', lines)
|
||||
else:
|
||||
self.assertIn(' sin(...)', lines)
|
||||
self.assertIn(' sin(object, /)', lines)
|
||||
|
||||
def test_html_doc_routines_in_module(self):
|
||||
doc = pydoc.HTMLDoc()
|
||||
|
|
@ -2037,7 +2037,7 @@ def test_html_doc_routines_in_module(self):
|
|||
if not support.MISSING_C_DOCSTRINGS:
|
||||
self.assertIn(' sin(x, /)', lines)
|
||||
else:
|
||||
self.assertIn(' sin(...)', lines)
|
||||
self.assertIn(' sin(object, /)', lines)
|
||||
|
||||
|
||||
@unittest.skipIf(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue