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
4 changes: 2 additions & 2 deletions Lib/ctypes/test/test_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,15 @@ class EmptyStruct(Structure):
_fields_ = []

obj = (EmptyStruct * 2)() # bpo37188: Floating point exception
assert sizeof(obj) == 0
self.assertEqual(sizeof(obj), 0)

def test_empty_element_array(self):
class EmptyArray(Array):
_type_ = c_int
_length_ = 0

obj = (EmptyArray * 2)() # bpo37188: Floating point exception
assert sizeof(obj) == 0
self.assertEqual(sizeof(obj), 0)

def test_bpo36504_signed_int_overflow(self):
# The overflow check in PyCArrayType_new() could cause signed integer
Expand Down