Skip to content

Commit

Permalink
Fix testcase: Enum changes were reverted in Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
befeleme committed Jul 14, 2021
1 parent 3c3a734 commit 42d9d11
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/test_ext_autodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1398,16 +1398,9 @@ 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, 10):
sig = '(value)'
else:
sig = ('(value, names=None, *, module=None, qualname=None, type=None, start=1, '
'boundary=None)')

assert list(actual) == [
'',
'.. py:class:: EnumCls%s' % sig,
'.. py:class:: EnumCls(value)',
' :module: target.enums',
'',
' this is enum class',
Expand Down

0 comments on commit 42d9d11

Please sign in to comment.