diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-22 00:28:35 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-02-22 00:49:45 +0900 |
commit | 2fec37219fc8d99f96026308116ef859c67d7588 (patch) | |
tree | a9359eccc69155a47a6198cc5ebb7dedc6df29a3 /tests/test_autodoc.py | |
parent | 130a0a7f3877e55fca5ead70edd880fc2f23ff46 (diff) | |
download | sphinx-git-2fec37219fc8d99f96026308116ef859c67d7588.tar.gz |
Fix #7189: autodoc: classmethod coroutines are not detected
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r-- | tests/test_autodoc.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index 2e8ff0414..a86211f18 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -1319,7 +1319,23 @@ def test_coroutine(): ' :async:', ' ', ' A documented coroutine function', - ' ' + ' ', + ' ', + ' .. py:method:: AsyncClass.do_coroutine2()', + ' :module: target.coroutine', + ' :async:', + ' :classmethod:', + ' ', + ' A documented coroutine classmethod', + ' ', + ' ', + ' .. py:method:: AsyncClass.do_coroutine3()', + ' :module: target.coroutine', + ' :async:', + ' :staticmethod:', + ' ', + ' A documented coroutine staticmethod', + ' ', ] |