Fix test expectations for enum rendering on Python 3.12.3 (#12293)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
James Addison 2024-04-17 04:18:52 +01:00 committed by GitHub
parent 0d1e41feee
commit 943f6fbf9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1454,7 +1454,7 @@ class _EnumFormatter:
"""Generate the brief part of the class being documented."""
assert doc, f'enumeration class {self.target!r} should have an explicit docstring'
if sys.version_info[:2] >= (3, 13):
if sys.version_info[:2] >= (3, 13) or sys.version_info[:3] >= (3, 12, 3):
args = ('(value, names=<not given>, *values, module=None, '
'qualname=None, type=None, start=1, boundary=None)')
elif sys.version_info[:2] >= (3, 12):