diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-04-28 01:02:00 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-05-01 22:05:45 +0900 |
commit | 25fc47e6b7890aec22b2c24e68e7febfaee848e0 (patch) | |
tree | e13193b4088815bccb8c2166cdb5a8908d2e8e0d /tests/test_autodoc.py | |
parent | 5460ad6925199b57b27b7d059825d3560872edbb (diff) | |
download | sphinx-git-25fc47e6b7890aec22b2c24e68e7febfaee848e0.tar.gz |
Fix #7559: autodoc: misdetects a sync function is async
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r-- | tests/test_autodoc.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index cbbdbb787..6d57d795d 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -1379,6 +1379,15 @@ def test_coroutine(): '', ] + # force-synchronized wrapper + actual = do_autodoc(app, 'function', 'target.coroutine.sync_func') + assert list(actual) == [ + '', + '.. py:function:: sync_func()', + ' :module: target.coroutine', + '', + ] + @pytest.mark.sphinx('html', testroot='ext-autodoc') def test_partialmethod(app): |