@@ -1686,6 +1686,8 @@ def test_text_doc_routines_in_class(self, cls=pydocfodder.B):
16861686 self .assertIn (' | global_func(x, y) from test.test_pydoc.pydocfodder' , lines )
16871687 self .assertIn (' | global_func_alias = global_func(x, y)' , lines )
16881688 self .assertIn (' | global_func2_alias = global_func2(x, y) from test.test_pydoc.pydocfodder' , lines )
1689+ self .assertIn (' | count(self, value, /) from builtins.list' , lines )
1690+ self .assertIn (' | list_count = count(self, value, /)' , lines )
16891691 self .assertIn (' | __repr__(self, /) from builtins.object' , lines )
16901692 self .assertIn (' | object_repr = __repr__(self, /)' , lines )
16911693
@@ -1714,6 +1716,8 @@ def test_html_doc_routines_in_class(self, cls=pydocfodder.B):
17141716 self .assertIn ('global_func(x, y) from test.test_pydoc.pydocfodder' , lines )
17151717 self .assertIn ('global_func_alias = global_func(x, y)' , lines )
17161718 self .assertIn ('global_func2_alias = global_func2(x, y) from test.test_pydoc.pydocfodder' , lines )
1719+ self .assertIn ('count(self, value, /) from builtins.list' , lines )
1720+ self .assertIn ('list_count = count(self, value, /)' , lines )
17171721 self .assertIn ('__repr__(self, /) from builtins.object' , lines )
17181722 self .assertIn ('object_repr = __repr__(self, /)' , lines )
17191723
@@ -1757,6 +1761,10 @@ def test_text_doc_routines_in_module(self):
17571761 # unbound methods
17581762 self .assertIn (' B_method(self)' , lines )
17591763 self .assertIn (' B_method2 = B_method(self)' , lines )
1764+ self .assertIn (' count(self, value, /) unbound builtins.list method' , lines )
1765+ self .assertIn (' list_count = count(self, value, /) unbound builtins.list method' , lines )
1766+ self .assertIn (' __repr__(self, /) unbound builtins.object method' , lines )
1767+ self .assertIn (' object_repr = __repr__(self, /) unbound builtins.object method' , lines )
17601768
17611769 def test_html_doc_routines_in_module (self ):
17621770 doc = pydoc .HTMLDoc ()
@@ -1782,6 +1790,10 @@ def test_html_doc_routines_in_module(self):
17821790 # unbound methods
17831791 self .assertIn (' B_method(self)' , lines )
17841792 self .assertIn (' B_method2 = B_method(self)' , lines )
1793+ self .assertIn (' count(self, value, /) unbound builtins.list method' , lines )
1794+ self .assertIn (' list_count = count(self, value, /) unbound builtins.list method' , lines )
1795+ self .assertIn (' __repr__(self, /) unbound builtins.object method' , lines )
1796+ self .assertIn (' object_repr = __repr__(self, /) unbound builtins.object method' , lines )
17851797
17861798
17871799@unittest .skipIf (
0 commit comments