]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104533: Update test_ctypes.test_structures (#154091)
authorVictor Stinner <vstinner@python.org>
Sun, 19 Jul 2026 10:51:29 +0000 (12:51 +0200)
committerGitHub <noreply@github.com>
Sun, 19 Jul 2026 10:51:29 +0000 (10:51 +0000)
Lib/test/test_ctypes/test_structures.py

index 04c3682e8308ecee1bcdb093bc1faefa063f8dce..a74a3548ee78413e26818a6223a80834fa13a4ae 100644 (file)
@@ -958,7 +958,7 @@ class StructureTestCase(unittest.TestCase, StructCheckMixin):
     def test_string_annotations(self):
         from test.test_ctypes import struct_str_ann
         Point = struct_str_ann.Point
-        fields = [['x', c_int], ['y', c_int]]
+        fields = [('x', c_int), ('y', c_int)]
         self.assertEqual(Point._fields_, fields)