@@ -1619,59 +1619,6 @@ def test_bound_method(app):
16191619 ]
16201620
16211621
1622- @pytest .mark .sphinx ('html' , testroot = 'ext-autodoc' )
1623- def test_coroutine (app ):
1624- actual = do_autodoc (app , 'function' , 'target.functions.coroutinefunc' )
1625- assert list (actual ) == [
1626- '' ,
1627- '.. py:function:: coroutinefunc()' ,
1628- ' :module: target.functions' ,
1629- ' :async:' ,
1630- '' ,
1631- ]
1632-
1633- options = {"members" : None }
1634- actual = do_autodoc (app , 'class' , 'target.coroutine.AsyncClass' , options )
1635- assert list (actual ) == [
1636- '' ,
1637- '.. py:class:: AsyncClass()' ,
1638- ' :module: target.coroutine' ,
1639- '' ,
1640- '' ,
1641- ' .. py:method:: AsyncClass.do_coroutine()' ,
1642- ' :module: target.coroutine' ,
1643- ' :async:' ,
1644- '' ,
1645- ' A documented coroutine function' ,
1646- '' ,
1647- '' ,
1648- ' .. py:method:: AsyncClass.do_coroutine2()' ,
1649- ' :module: target.coroutine' ,
1650- ' :async:' ,
1651- ' :classmethod:' ,
1652- '' ,
1653- ' A documented coroutine classmethod' ,
1654- '' ,
1655- '' ,
1656- ' .. py:method:: AsyncClass.do_coroutine3()' ,
1657- ' :module: target.coroutine' ,
1658- ' :async:' ,
1659- ' :staticmethod:' ,
1660- '' ,
1661- ' A documented coroutine staticmethod' ,
1662- '' ,
1663- ]
1664-
1665- # force-synchronized wrapper
1666- actual = do_autodoc (app , 'function' , 'target.coroutine.sync_func' )
1667- assert list (actual ) == [
1668- '' ,
1669- '.. py:function:: sync_func()' ,
1670- ' :module: target.coroutine' ,
1671- '' ,
1672- ]
1673-
1674-
16751622@pytest .mark .sphinx ('html' , testroot = 'ext-autodoc' )
16761623def test_partialmethod (app ):
16771624 expected = [
0 commit comments