From: Akshat Gupta Date: Fri, 9 May 2025 14:01:01 +0000 (+0530) Subject: gh-133682: Fix inconsistent set ordering in annotationlib test (#133702) X-Git-Tag: v3.15.0a1~1802 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2a0fa91c483964a280b7b788418217b3d6d1411;p=thirdparty%2FPython%2Fcpython.git gh-133682: Fix inconsistent set ordering in annotationlib test (#133702) --- diff --git a/Lib/test/test_annotationlib.py b/Lib/test/test_annotationlib.py index 4af97c82de9d..73a821d15e34 100644 --- a/Lib/test/test_annotationlib.py +++ b/Lib/test/test_annotationlib.py @@ -378,7 +378,7 @@ class TestStringFormat(unittest.TestCase): def g( w: a[[int, str], float], - x: a[{int, str}, 3], + x: a[{int}, 3], y: a[{int: str}, 4], z: a[(int, str), 5], ): @@ -388,7 +388,7 @@ class TestStringFormat(unittest.TestCase): anno, { "w": "a[[int, str], float]", - "x": "a[{int, str}, 3]", + "x": "a[{int}, 3]", "y": "a[{int: str}, 4]", "z": "a[(int, str), 5]", }, diff --git a/Misc/NEWS.d/next/Tests/2025-05-09-04-11-06.gh-issue-133682.-_lwo3.rst b/Misc/NEWS.d/next/Tests/2025-05-09-04-11-06.gh-issue-133682.-_lwo3.rst new file mode 100644 index 000000000000..ebd17f73ca57 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-05-09-04-11-06.gh-issue-133682.-_lwo3.rst @@ -0,0 +1 @@ +Fixed test case ``test.test_annotationlib.TestStringFormat.test_displays`` which ensures proper handling of complex data structures (lists, sets, dictionaries, and tuples) in string annotations.