mirror of
https://github.com/python/cpython.git
synced 2025-10-22 09:23:54 +00:00
[3.14] gh-133210: Fix test_pydoc
without docstrings (GH-139654) (#139777)
gh-133210: Fix `test_pydoc` without docstrings (GH-139654)
(cherry picked from commit 708de26e31
)
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
This commit is contained in:
parent
d8bdc1e6f7
commit
a96cde9f80
1 changed files with 3 additions and 3 deletions
|
@ -1943,7 +1943,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)
|
||||
|
@ -2033,7 +2033,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()
|
||||
|
@ -2078,7 +2078,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