mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #7812: autodoc: crashed when given name is conflicted
Note: this partially reverts #7594 to avoid errors.
This commit is contained in:
@@ -85,8 +85,8 @@ def test_methoddescriptor(app):
|
||||
actual = do_autodoc(app, 'function', 'builtins.int.__add__')
|
||||
assert list(actual) == [
|
||||
'',
|
||||
'.. py:function:: int.__add__(self, value, /)',
|
||||
' :module: builtins',
|
||||
'.. py:function:: __add__(self, value, /)',
|
||||
' :module: builtins.int',
|
||||
'',
|
||||
' Return self+value.',
|
||||
'',
|
||||
|
||||
Reference in New Issue
Block a user