diff options
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): |