Skip to content

Commit 2760b3b

Browse files
committed
test: Support python-3.11
1 parent 30d5aee commit 2760b3b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/test_ext_autodoc.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,9 +1399,16 @@ def test_slots(app):
13991399
def test_enum_class(app):
14001400
options = {"members": None}
14011401
actual = do_autodoc(app, 'class', 'target.enums.EnumCls', options)
1402+
1403+
if sys.version_info > (3, 11):
1404+
args = ('(value, names=None, *, module=None, qualname=None, '
1405+
'type=None, start=1, boundary=None)')
1406+
else:
1407+
args = '(value)'
1408+
14021409
assert list(actual) == [
14031410
'',
1404-
'.. py:class:: EnumCls(value)',
1411+
'.. py:class:: EnumCls' + args,
14051412
' :module: target.enums',
14061413
'',
14071414
' this is enum class',
@@ -2106,6 +2113,9 @@ def test_singledispatchmethod_automethod(app):
21062113
]
21072114

21082115

2116+
@pytest.mark.skipif(sys.version_info > (3, 11),
2117+
reason=('cython does not support python-3.11 yet. '
2118+
'see https://github.com/cython/cython/issues/4365'))
21092119
@pytest.mark.skipif(pyximport is None, reason='cython is not installed')
21102120
@pytest.mark.sphinx('html', testroot='ext-autodoc')
21112121
def test_cython(app):

0 commit comments

Comments
 (0)