diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-01-16 18:55:45 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-01-19 15:22:09 +0900 |
commit | 53e38ccc30419cc3466e6f128ced924c4824653e (patch) | |
tree | 22f72737a93ed79665a9108ba770d3f11118d7c6 /tests/test_autodoc.py | |
parent | e908e43f67def2a721b53d4344157013344519af (diff) | |
download | sphinx-git-53e38ccc30419cc3466e6f128ced924c4824653e.tar.gz |
Fix #7023: autodoc: partial functions are listed as module members
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r-- | tests/test_autodoc.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index b1161deac..6d33caf35 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -1268,6 +1268,17 @@ def test_partialfunction(): @pytest.mark.usefixtures('setup_test') +def test_imported_partialfunction_should_not_shown_without_imported_members(): + options = {"members": None} + actual = do_autodoc(app, 'module', 'target.imported_members', options) + assert list(actual) == [ + '', + '.. py:module:: target.imported_members', + '' + ] + + +@pytest.mark.usefixtures('setup_test') def test_bound_method(): options = {"members": None} actual = do_autodoc(app, 'module', 'target.bound_method', options) |