@@ -1686,6 +1686,8 @@ def test_text_doc_routines_in_class(self, cls=pydocfodder.B):
1686
1686
self .assertIn (' | global_func(x, y) from test.test_pydoc.pydocfodder' , lines )
1687
1687
self .assertIn (' | global_func_alias = global_func(x, y)' , lines )
1688
1688
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 )
1689
1691
self .assertIn (' | __repr__(self, /) from builtins.object' , lines )
1690
1692
self .assertIn (' | object_repr = __repr__(self, /)' , lines )
1691
1693
@@ -1714,6 +1716,8 @@ def test_html_doc_routines_in_class(self, cls=pydocfodder.B):
1714
1716
self .assertIn ('global_func(x, y) from test.test_pydoc.pydocfodder' , lines )
1715
1717
self .assertIn ('global_func_alias = global_func(x, y)' , lines )
1716
1718
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 )
1717
1721
self .assertIn ('__repr__(self, /) from builtins.object' , lines )
1718
1722
self .assertIn ('object_repr = __repr__(self, /)' , lines )
1719
1723
@@ -1757,6 +1761,10 @@ def test_text_doc_routines_in_module(self):
1757
1761
# unbound methods
1758
1762
self .assertIn (' B_method(self)' , lines )
1759
1763
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 )
1760
1768
1761
1769
def test_html_doc_routines_in_module (self ):
1762
1770
doc = pydoc .HTMLDoc ()
@@ -1782,6 +1790,10 @@ def test_html_doc_routines_in_module(self):
1782
1790
# unbound methods
1783
1791
self .assertIn (' B_method(self)' , lines )
1784
1792
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 )
1785
1797
1786
1798
1787
1799
@unittest .skipIf (
0 commit comments