Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/test/test_ctypes/test_struct_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def test_gh126937(self):
class X(self.cls):
_fields_ = [('char', c_char),]
class Y(self.cls):
_fields_ = [('largeField', X * (2 ** 32))]
# (2^31 - 1) is the largest size that can fit into a signed 32 bit int
_fields_ = [('largeField', X * (2 ** 31 - 1))]

# __set__ and __get__ should raise a TypeError in case their self
# argument is not a ctype instance.
Expand Down