diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-09-08 11:38:39 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-09-22 16:31:07 +0900 |
commit | b18fe13f550e58cd9b65246ceda8618a760b84c8 (patch) | |
tree | 2a922a706543c092f31e6cc3019edc1a15c92137 /tests/py35/test_autodoc_py35.py | |
parent | 271ea125f2e5c3c21b39e5fa6edfc4b6dbcf0d26 (diff) | |
download | sphinx-git-b18fe13f550e58cd9b65246ceda8618a760b84c8.tar.gz |
Drop branches for sys.version_info < (3, 4)
Diffstat (limited to 'tests/py35/test_autodoc_py35.py')
-rw-r--r-- | tests/py35/test_autodoc_py35.py | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/tests/py35/test_autodoc_py35.py b/tests/py35/test_autodoc_py35.py index 5064970e6..dcaf665af 100644 --- a/tests/py35/test_autodoc_py35.py +++ b/tests/py35/test_autodoc_py35.py @@ -10,11 +10,7 @@ :license: BSD, see LICENSE for details. """ -# "raises" imported for usage by autodoc -import sys - import pytest -import six from docutils.statemachine import ViewList from six import StringIO @@ -207,11 +203,8 @@ def test_generate(): ('attribute', 'test_autodoc_py35.Class.inst_attr_inline'), ('attribute', 'test_autodoc_py35.Class.inst_attr_string'), ('method', 'test_autodoc_py35.Class.moore'), + ('method', 'test_autodoc_py35.Class.do_coroutine'), ]) - if six.PY3 and sys.version_info[:2] >= (3, 5): - should.extend([ - ('method', 'test_autodoc_py35.Class.do_coroutine'), - ]) options.members = ALL assert_processes(should, 'class', 'Class') options.undoc_members = True @@ -280,9 +273,8 @@ class Base(object): """Inherited function.""" -if six.PY3 and sys.version_info[:2] >= (3, 5): - async def _other_coro_func(): - return "run" +async def _other_coro_func(): + return "run" class Class(Base): @@ -341,8 +333,6 @@ class Class(Base): # undocumented special method pass - if six.PY3 and sys.version_info[:2] >= (3, 5): - - async def do_coroutine(self): - """A documented coroutine function""" - attr_coro_result = await _other_coro_func() # NOQA + async def do_coroutine(self): + """A documented coroutine function""" + attr_coro_result = await _other_coro_func() # NOQA |