Skip to content

Commit f050a77

Browse files
authored
Merge pull request sphinx-doc#9715 from tk0miya/test_with_py311-dev
CI: Install the latest py package on testing with py3.11-dev
2 parents 0f0b93d + 2760b3b commit f050a77

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ jobs:
5050
run: sudo apt-get install graphviz
5151
- name: Install dependencies
5252
run: pip install -U tox codecov
53+
- name: Install the latest py package (for py3.11-dev)
54+
run: pip install -U git+https://github.com/pytest-dev/py
55+
if: ${{ matrix.python == '3.11-dev' }}
5356
- name: Run Tox
5457
run: tox -e ${{ matrix.docutils }} -- -vv
5558
- name: codecov

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)