Skip to content

Commit a35e870

Browse files
[3.13] gh-133210: Fix test_pydoc without docstrings (GH-139654) (#139666)
gh-133210: Fix `test_pydoc` without docstrings (GH-139654) (cherry picked from commit 708de26) Co-authored-by: Mikhail Efimov <[email protected]>
1 parent 69ab8fb commit a35e870

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
@@ -1930,7 +1930,7 @@ def test_text_doc_routines_in_class(self, cls=pydocfodder.B):
19301930
else:
19311931
self.assertIn(' | get(...) method of builtins.dict instance', lines)
19321932
self.assertIn(' | dict_get = get(...) method of builtins.dict instance', lines)
1933-
self.assertIn(' | sin(...)', lines)
1933+
self.assertIn(' | sin(object, /)', lines)
19341934

19351935
lines = self.getsection(result, f' | Class methods {where}:', ' | ' + '-'*70)
19361936
self.assertIn(' | B_classmethod(x)', lines)
@@ -2020,7 +2020,7 @@ def test_text_doc_routines_in_module(self):
20202020
if not support.MISSING_C_DOCSTRINGS:
20212021
self.assertIn(' sin(x, /)', lines)
20222022
else:
2023-
self.assertIn(' sin(...)', lines)
2023+
self.assertIn(' sin(object, /)', lines)
20242024

20252025
def test_html_doc_routines_in_module(self):
20262026
doc = pydoc.HTMLDoc()
@@ -2065,7 +2065,7 @@ def test_html_doc_routines_in_module(self):
20652065
if not support.MISSING_C_DOCSTRINGS:
20662066
self.assertIn(' sin(x, /)', lines)
20672067
else:
2068-
self.assertIn(' sin(...)', lines)
2068+
self.assertIn(' sin(object, /)', lines)
20692069

20702070

20712071
@unittest.skipIf(

0 commit comments

Comments
 (0)