diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-06-10 22:25:21 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-10 22:25:21 +0900 |
commit | 1eb8e0145cb0d9f8f322e69dde7b5af2b71bd1a0 (patch) | |
tree | 75b430ecd7fd6fdfb34e1fa52a9366025dcfc4b5 /tests/test_autodoc.py | |
parent | 2289ae0a119ad3d78ac80ef405746fd18ad79f61 (diff) | |
parent | 8828017f6c08a756decffe1cd496b7083dded322 (diff) | |
download | sphinx-git-1eb8e0145cb0d9f8f322e69dde7b5af2b71bd1a0.tar.gz |
Merge pull request #6471 from tk0miya/6447_revert_undoc_module_level_variables
Revert "Fix #1063: autodoc: automodule directive handles undocumented module level variables"
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r-- | tests/test_autodoc.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index 518d23e8c..f6f5a618c 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -1689,30 +1689,6 @@ def test_partialmethod(app): assert list(actual) == expected -@pytest.mark.usefixtures('setup_test') -def test_module_variables(): - options = {"members": None, - "undoc-members": True} - actual = do_autodoc(app, 'module', 'target.module', options) - assert list(actual) == [ - '', - '.. py:module:: target.module', - '', - '', - '.. py:data:: CONSTANT1', - ' :module: target.module', - " :annotation: = ''", - '', - ' docstring for CONSTANT1', - ' ', - '', - '.. py:data:: CONSTANT2', - ' :module: target.module', - " :annotation: = ''", - '', - ] - - @pytest.mark.sphinx('html', testroot='ext-autodoc') def test_autodoc_typehints_signature(app): app.config.autodoc_typehints = "signature" |