summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-12-30 01:04:40 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-12-30 18:11:52 +0000
commitaeda313430d57b6c59beb5424b34af357027164c (patch)
treeed87c3ff43dbc66f4f6624fada6247309aafe8c8
parent28d184c0d68f5ce210f8b318881e14aaf52aa143 (diff)
downloadsphinx-git-aeda313430d57b6c59beb5424b34af357027164c.tar.gz
Reflect changes to ``Enum`` signature in Python 3.12
-rw-r--r--tests/test_ext_autodoc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_ext_autodoc.py b/tests/test_ext_autodoc.py
index 09b7608b9..6b00373f4 100644
--- a/tests/test_ext_autodoc.py
+++ b/tests/test_ext_autodoc.py
@@ -1402,7 +1402,10 @@ def test_enum_class(app):
options = {"members": None}
actual = do_autodoc(app, 'class', 'target.enums.EnumCls', options)
- if sys.version_info[:2] >= (3, 11):
+ if sys.version_info[:2] >= (3, 12):
+ args = ('(value, names=None, *values, module=None, '
+ 'qualname=None, type=None, start=1, boundary=None)')
+ elif sys.version_info[:2] >= (3, 11):
args = ('(value, names=None, *, module=None, qualname=None, '
'type=None, start=1, boundary=None)')
else: