summaryrefslogtreecommitdiff
path: root/tests/test_autodoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-01-17 09:13:41 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-01-17 09:15:45 +0900
commite908e43f67def2a721b53d4344157013344519af (patch)
treefe3b0ac76a2ea59d458e022a86655b5d2ef521ba /tests/test_autodoc.py
parentef811532c9102176a82605d1c62c1cfe68a9e870 (diff)
downloadsphinx-git-e908e43f67def2a721b53d4344157013344519af.tar.gz
Fix #7023: autodoc: nested partial functions are not listed
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r--tests/test_autodoc.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py
index bd13cf6c2..b1161deac 100644
--- a/tests/test_autodoc.py
+++ b/tests/test_autodoc.py
@@ -1241,19 +1241,25 @@ def test_partialfunction():
'.. py:module:: target.partialfunction',
'',
'',
- '.. py:function:: func1()',
+ '.. py:function:: func1(a, b, c)',
' :module: target.partialfunction',
'',
' docstring of func1',
' ',
'',
- '.. py:function:: func2()',
+ '.. py:function:: func2(b, c)',
' :module: target.partialfunction',
'',
' docstring of func1',
' ',
'',
- '.. py:function:: func3()',
+ '.. py:function:: func3(c)',
+ ' :module: target.partialfunction',
+ '',
+ ' docstring of func3',
+ ' ',
+ '',
+ '.. py:function:: func4()',
' :module: target.partialfunction',
'',
' docstring of func3',