8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f09d915 commit 4ea9dbdCopy full SHA for 4ea9dbd
Lib/ctypes/test/test_arrays.py
@@ -199,15 +199,15 @@ class EmptyStruct(Structure):
199
_fields_ = []
200
201
obj = (EmptyStruct * 2)() # bpo37188: Floating point exception 86B5
202
- assert sizeof(obj) == 0
+ self.assertEqual(sizeof(obj), 0)
203
204
def test_empty_element_array(self):
205
class EmptyArray(Array):
206
_type_ = c_int
207
_length_ = 0
208
209
obj = (EmptyArray * 2)() # bpo37188: Floating point exception
210
211
212
def test_bpo36504_signed_int_overflow(self):
213
# The overflow check in PyCArrayType_new() could cause signed integer
0 commit comments