summaryrefslogtreecommitdiffstats
path: root/debian/patches/python_3.12.3.diff
blob: 5df6857c349384eef960bda3eea91a657f40e79c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: James Addison <55152140+jayaddison@users.noreply.github.com>
Date: Fri, 8 Mar 2024 10:58:04 +0000
Subject: [tests] reflect changes to Enum signature in Python 3.12.3 (#12054)

(cherry picked from commit 5523c9bbe4d1415777669330411d4f00ad802f18)
---
 tests/test_ext_autodoc.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/test_ext_autodoc.py b/tests/test_ext_autodoc.py
index 7062763..5f63214 100644
--- a/tests/test_ext_autodoc.py
+++ b/tests/test_ext_autodoc.py
@@ -1407,7 +1407,10 @@ def test_enum_class(app):
     options = {"members": None}
     actual = do_autodoc(app, 'class', 'target.enums.EnumCls', options)
 
-    if sys.version_info[:2] >= (3, 12):
+    if 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):
         args = ('(value, names=None, *values, module=None, '
                 'qualname=None, type=None, start=1, boundary=None)')
     elif sys.version_info[:2] >= (3, 11):