diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-04-03 13:22:06 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-04-03 13:22:06 +0900 |
commit | 8dbacb144223bf70f840f0ad65f2ba6dac92f657 (patch) | |
tree | a450b0df16e771e71f96574359e63a7e2c0f9c21 | |
parent | b342300c5efc40f0dc16a819d0a151ac097d02e8 (diff) | |
parent | c6c970e3222d69ccdbf599fbd46e69977be8b1bd (diff) | |
download | sphinx-git-8dbacb144223bf70f840f0ad65f2ba6dac92f657.tar.gz |
Merge branch '3.5.x' into 3.x
-rw-r--r-- | tests/test_ext_autodoc.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_ext_autodoc.py b/tests/test_ext_autodoc.py index 42aa3e808..1dc1bfe76 100644 --- a/tests/test_ext_autodoc.py +++ b/tests/test_ext_autodoc.py @@ -1373,9 +1373,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, 10): + sig = '(value)' + else: + sig = ('(value, names=None, *, module=None, qualname=None, type=None, start=1, ' + 'boundary=None)') + assert list(actual) == [ '', - '.. py:class:: EnumCls(value)', + '.. py:class:: EnumCls%s' % sig, ' :module: target.enums', '', ' this is enum class', |