diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-01-11 02:56:58 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-01-11 02:56:58 +0900 |
commit | cad1f86dd895836e36e6a57407a5d82c990dfaa8 (patch) | |
tree | d4839cab0724aeb713dbfcc4ea2aadcbc797aaef /tests/test_autodoc.py | |
parent | f6e7878ec8e4baa884573dcac020202cb76b16da (diff) | |
parent | f7c9049e9c49f51bdb6ae461f8278eba45e51462 (diff) | |
download | sphinx-git-cad1f86dd895836e36e6a57407a5d82c990dfaa8.tar.gz |
Merge branch '2.0'
Diffstat (limited to 'tests/test_autodoc.py')
-rw-r--r-- | tests/test_autodoc.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index c5bdc801b..819cbdcde 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -1342,13 +1342,13 @@ def test_partialmethod(app): ' refs: https://docs.python.jp/3/library/functools.html#functools.partialmethod', ' ', ' ', - ' .. py:method:: Cell.set_alive() -> None', + ' .. py:method:: Cell.set_alive()', ' :module: target.partialmethod', ' ', ' Make a cell alive.', ' ', ' ', - ' .. py:method:: Cell.set_dead() -> None', + ' .. py:method:: Cell.set_dead()', ' :module: target.partialmethod', ' ', ' Make a cell dead.', @@ -1360,11 +1360,6 @@ def test_partialmethod(app): ' Update state of cell to *state*.', ' ', ] - if (sys.version_info < (3, 5, 4) or - (3, 6, 5) <= sys.version_info < (3, 7) or - (3, 7, 0, 'beta', 3) <= sys.version_info): - # TODO: this condition should be updated after 3.7-final release. - expected = '\n'.join(expected).replace(' -> None', '').split('\n') options = {"members": None} actual = do_autodoc(app, 'class', 'target.partialmethod.Cell', options) |