Skip to content

Commit 708de26

Browse files
gh-133210: Fix test_pydoc without docstrings (#139654)
1 parent 69cfad0 commit 708de26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_pydoc/test_pydoc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ def test_text_doc_routines_in_class(self, cls=pydocfodder.B):
19021902
else:
19031903
self.assertIn(' | get(...) method of builtins.dict instance', lines)
19041904
self.assertIn(' | dict_get = get(...) method of builtins.dict instance', lines)
1905-
self.assertIn(' | sin(...)', lines)
1905+
self.assertIn(' | sin(object, /)', lines)
19061906

19071907
lines = self.getsection(result, f' | Class methods {where}:', ' | ' + '-'*70)
19081908
self.assertIn(' | B_classmethod(x)', lines)
@@ -1992,7 +1992,7 @@ def test_text_doc_routines_in_module(self):
19921992
if not support.MISSING_C_DOCSTRINGS:
19931993
self.assertIn(' sin(x, /)', lines)
19941994
else:
1995-
self.assertIn(' sin(...)', lines)
1995+
self.assertIn(' sin(object, /)', lines)
19961996

19971997
def test_html_doc_routines_in_module(self):
19981998
doc = pydoc.HTMLDoc()
@@ -2037,7 +2037,7 @@ def test_html_doc_routines_in_module(self):
20372037
if not support.MISSING_C_DOCSTRINGS:
20382038
self.assertIn(' sin(x, /)', lines)
20392039
else:
2040-
self.assertIn(' sin(...)', lines)
2040+
self.assertIn(' sin(object, /)', lines)
20412041

20422042

20432043
@unittest.skipIf(

0 commit comments

Comments
 (0)