https://github.com/python/cpython/commit/a35e87086118fd319842fbaaf1c363d15b31d870
commit: a35e87086118fd319842fbaaf1c363d15b31d870
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: vstinner <[email protected]>
date: 2025-10-06T15:14:04Z
summary:

[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 708de26e31b65cd3ae768882c8da59284917a80d)

Co-authored-by: Mikhail Efimov <[email protected]>

files:
M Lib/test/test_pydoc/test_pydoc.py

diff --git a/Lib/test/test_pydoc/test_pydoc.py 
b/Lib/test/test_pydoc/test_pydoc.py
index e84bc48ff11f13..678269f66362e7 100644
--- a/Lib/test/test_pydoc/test_pydoc.py
+++ b/Lib/test/test_pydoc/test_pydoc.py
@@ -1930,7 +1930,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)
@@ -2020,7 +2020,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()
@@ -2065,7 +2065,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(

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to