summaryrefslogtreecommitdiff
path: root/tests/test_ext_autodoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-10-09 14:41:39 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-10-09 14:41:39 +0900
commit2760b3bb795fc387590719b8045dd07c87d75de9 (patch)
tree478617fd44906cee267cdd738bc114571d8561ee /tests/test_ext_autodoc.py
parent30d5aeef58ffd0fb73395ea825c227688a7e5bee (diff)
downloadsphinx-git-2760b3bb795fc387590719b8045dd07c87d75de9.tar.gz
test: Support python-3.11
Diffstat (limited to 'tests/test_ext_autodoc.py')
-rw-r--r--tests/test_ext_autodoc.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test_ext_autodoc.py b/tests/test_ext_autodoc.py
index db5760cd1..63a559f8e 100644
--- a/tests/test_ext_autodoc.py
+++ b/tests/test_ext_autodoc.py
@@ -1399,9 +1399,16 @@ def test_slots(app):
def test_enum_class(app):
options = {"members": None}
actual = do_autodoc(app, 'class', 'target.enums.EnumCls', options)
+
+ if sys.version_info > (3, 11):
+ args = ('(value, names=None, *, module=None, qualname=None, '
+ 'type=None, start=1, boundary=None)')
+ else:
+ args = '(value)'
+
assert list(actual) == [
'',
- '.. py:class:: EnumCls(value)',
+ '.. py:class:: EnumCls' + args,
' :module: target.enums',
'',
' this is enum class',
@@ -2106,6 +2113,9 @@ def test_singledispatchmethod_automethod(app):
]
+@pytest.mark.skipif(sys.version_info > (3, 11),
+ reason=('cython does not support python-3.11 yet. '
+ 'see https://github.com/cython/cython/issues/4365'))
@pytest.mark.skipif(pyximport is None, reason='cython is not installed')
@pytest.mark.sphinx('html', testroot='ext-autodoc')
def test_cython(app):