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 7f8a38a commit 307d4cbCopy full SHA for 307d4cb
Lib/ctypes/test/test_arrays.py
@@ -213,15 +213,15 @@ class EmptyStruct(Structure):
213
_fields_ = []
214
215
obj = (EmptyStruct * 2)() # bpo37188: Floating point exception
216
- assert sizeof(obj) == 0
+ self.assertEqual(sizeof(obj), 0)
217
218
def test_empty_element_array(self):
219
class EmptyArray(Array):
220
_type_ = c_int
221
_length_ = 0
222
223
obj = (EmptyArray * 2)() # bpo37188: Floating point exception
224
225
226
def test_bpo36504_signed_int_overflow(self):
227
# The overflow check in PyCArrayType_new() could cause signed integer
0 commit comments