Skip to content

Commit 307d4cb

Browse files
author
Stefan Krah
authored
Use assertEqual(). (#13883)
1 parent 7f8a38a commit 307d4cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/ctypes/test/test_arrays.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ class EmptyStruct(Structure):
213213
_fields_ = []
214214

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

218218
def test_empty_element_array(self):
219219
class EmptyArray(Array):
220220
_type_ = c_int
221221
_length_ = 0
222222

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

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

0 commit comments

Comments
 (0)