[Python-checkins] bpo-46748: Fix ctypes test_frozentable() (GH-31600)

vstinner webhook-mailer at python.org
Sat Feb 26 18:25:58 EST 2022


https://github.com/python/cpython/commit/e182c660b63bc23420fb9f0593d77a3fa3b7f1c7
commit: e182c660b63bc23420fb9f0593d77a3fa3b7f1c7
branch: main
author: Kumar Aditya <59607654+kumaraditya303 at users.noreply.github.com>
committer: vstinner <vstinner at python.org>
date: 2022-02-27T00:25:46+01:00
summary:

bpo-46748: Fix ctypes test_frozentable() (GH-31600)

files:
M Lib/ctypes/test/test_values.py

diff --git a/Lib/ctypes/test/test_values.py b/Lib/ctypes/test/test_values.py
index b2db426d10f43..435fdd22ea2be 100644
--- a/Lib/ctypes/test/test_values.py
+++ b/Lib/ctypes/test/test_values.py
@@ -54,7 +54,7 @@ class struct_frozen(Structure):
             _fields_ = [("name", c_char_p),
                         ("code", POINTER(c_ubyte)),
                         ("size", c_int),
-                        ("is_package", c_bool),
+                        ("is_package", c_int),
                         ("get_code", POINTER(c_ubyte)),  # Function ptr
                         ]
         FrozenTable = POINTER(struct_frozen)



More information about the Python-checkins mailing list