diff --git a/tests/test_extensions/test_ext_autodoc.py b/tests/test_extensions/test_ext_autodoc.py index fc8e1179a00..e7e652f1955 100644 --- a/tests/test_extensions/test_ext_autodoc.py +++ b/tests/test_extensions/test_ext_autodoc.py @@ -2124,6 +2124,13 @@ def test_coroutine(app): ' :module: target.coroutine', '', '', + ' .. py:method:: AsyncClass.do_asyncgen()', + ' :module: target.coroutine', + ' :async:', + '', + ' A documented async generator', + '', + '', ' .. py:method:: AsyncClass.do_coroutine()', ' :module: target.coroutine', ' :async:', diff --git a/tests/test_extensions/test_ext_autodoc_autoattribute.py b/tests/test_extensions/test_ext_autodoc_autoattribute.py index 70d9d789d29..05ff1abe7bf 100644 --- a/tests/test_extensions/test_ext_autodoc_autoattribute.py +++ b/tests/test_extensions/test_ext_autodoc_autoattribute.py @@ -159,11 +159,10 @@ def test_autoattribute_TypeVar(app): '.. py:attribute:: Class.T1', ' :module: target.typevar', ' :canonical: target.typevar.T1', + ' :value: ~T1', '', ' T1', '', - " alias of TypeVar('T1')", - '', ]