Skip to content

Commit a96cde9

Browse files
[3.14] pythongh-133210: Fix test_pydoc without docstrings (pythonGH-139654) (python#139777)
pythongh-133210: Fix `test_pydoc` without docstrings (pythonGH-139654) (cherry picked from commit 708de26) Co-authored-by: Mikhail Efimov <[email protected]>
1 parent d8bdc1e commit a96cde9

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
@@ -1943,7 +1943,7 @@ def test_text_doc_routines_in_class(self, cls=pydocfodder.B):
19431943
else:
19441944
self.assertIn(' | get(...) method of builtins.dict instance', lines)
19451945
self.assertIn(' | dict_get = get(...) method of builtins.dict instance', lines)
1946-
self.assertIn(' | sin(...)', lines)
1946+
self.assertIn(' | sin(object, /)', lines)
19471947

19481948
lines = self.getsection(result, f' | Class methods {where}:', ' | ' + '-'*70)
19491949
self.assertIn(' | B_classmethod(x)', lines)
@@ -2033,7 +2033,7 @@ def test_text_doc_routines_in_module(self):
20332033
if not support.MISSING_C_DOCSTRINGS:
20342034
self.assertIn(' sin(x, /)', lines)
20352035
else:
2036-
self.assertIn(' sin(...)', lines)
2036+
self.assertIn(' sin(object, /)', lines)
20372037

20382038
def test_html_doc_routines_in_module(self):
20392039
doc = pydoc.HTMLDoc()
@@ -2078,7 +2078,7 @@ def test_html_doc_routines_in_module(self):
20782078
if not support.MISSING_C_DOCSTRINGS:
20792079
self.assertIn(' sin(x, /)', lines)
20802080
else:
2081-
self.assertIn(' sin(...)', lines)
2081+
self.assertIn(' sin(object, /)', lines)
20822082

20832083

20842084
@unittest.skipIf(

0 commit comments

Comments
 (0)