Skip to content

Commit

Permalink
Merge branch '4.x' into 9683_add_css_file
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Oct 9, 2021
2 parents 0424da3 + f050a77 commit 99b8019
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -50,6 +50,9 @@ jobs:
run: sudo apt-get install graphviz
- name: Install dependencies
run: pip install -U tox codecov
- name: Install the latest py package (for py3.11-dev)
run: pip install -U git+https://github.com/pytest-dev/py
if: ${{ matrix.python == '3.11-dev' }}
- name: Run Tox
run: tox -e ${{ matrix.docutils }} -- -vv
- name: codecov
Expand Down
12 changes: 11 additions & 1 deletion tests/test_ext_autodoc.py
Expand Up @@ -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',
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 99b8019

Please sign in to comment.