Skip to content

Commit

Permalink
Fix test expectations for enum rendering on Python 3.12.3 (#12293)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
jayaddison and AA-Turner committed Apr 17, 2024
1 parent 0d1e41f commit 943f6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_extensions/test_ext_autodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ def brief(self, doc: str, *, indent: int = 0, **options: Any) -> list[str]:
"""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):
Expand Down

0 comments on commit 943f6fb

Please sign in to comment.