Move py3.5 specific tests to their own file and adjust test environment

This commit is contained in:
Alberto Berti
2015-11-10 03:40:48 +01:00
parent 933ed5a50c
commit 782310039b
4 changed files with 354 additions and 18 deletions

View File

@@ -636,10 +636,6 @@ def test_generate():
('attribute', 'test_autodoc.Class.inst_attr_string'),
('method', 'test_autodoc.Class.moore'),
])
if six.PY3 and sys.version_info[:2] >= (3, 5):
should.extend([
('method', 'test_autodoc.Class.do_coroutine'),
])
options.members = ALL
assert_processes(should, 'class', 'Class')
options.undoc_members = True
@@ -838,11 +834,6 @@ class Base(object):
def inheritedmeth(self):
"""Inherited function."""
if six.PY3 and sys.version_info[:2] >= (3, 5):
async def _other_coro_func():
return "run"
class Class(Base):
"""Class to document."""
@@ -900,13 +891,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()
class CustomDict(dict):
"""Docstring."""