diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-05-30 01:19:21 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-06-02 17:51:20 +0900 |
commit | afbf6d811dd4fc514d63e9dc3d6bee78d97b8a0c (patch) | |
tree | bc5307c546e47262914ef8c25ab64de87136e1a3 /tests/test_autodoc.py | |
parent | 27dd8367c65c4313d499d945e7a2804865a1754a (diff) | |
download | sphinx-git-afbf6d811dd4fc514d63e9dc3d6bee78d97b8a0c.tar.gz |
Migrate to py3 style type annotation: sphinx.util
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r-- | tests/test_autodoc.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index 518d23e8c..ad6a56d33 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -793,7 +793,7 @@ def test_autodoc_imported_members(app): "imported-members": None, "ignore-module-all": None} actual = do_autodoc(app, 'module', 'target', options) - assert '.. py:function:: save_traceback(app)' in actual + assert '.. py:function:: save_traceback(app: Sphinx) -> str' in actual @pytest.mark.sphinx('html', testroot='ext-autodoc') @@ -1795,7 +1795,7 @@ def test_autodoc_default_options(app): actual = do_autodoc(app, 'class', 'target.CustomIter') assert ' .. py:method:: target.CustomIter' not in actual actual = do_autodoc(app, 'module', 'target') - assert '.. py:function:: save_traceback(app)' not in actual + assert '.. py:function:: save_traceback(app: Sphinx) -> str' not in actual # with :members: app.config.autodoc_default_options = {'members': None} @@ -1866,7 +1866,8 @@ def test_autodoc_default_options(app): 'ignore-module-all': None, } actual = do_autodoc(app, 'module', 'target') - assert '.. py:function:: save_traceback(app)' in actual + print('\n'.join(actual)) + assert '.. py:function:: save_traceback(app: Sphinx) -> str' in actual @pytest.mark.sphinx('html', testroot='ext-autodoc') |