8000 Use assertEqual(). (#13886) · python/cpython@4ea9dbd · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ea9dbd

Browse files
miss-islingtonStefan Krah
authored and
Stefan Krah
committed
Use assertEqual(). (#13886)
1 parent f09d915 commit 4ea9dbd

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
@@ -199,15 +199,15 @@ class EmptyStruct(Structure):
199199
_fields_ = []
200200

201201
obj = (EmptyStruct * 2)() # bpo37188: Floating point exception 86B5
202-
assert sizeof(obj) == 0
202+
self.assertEqual(sizeof(obj), 0)
203203

204204
def test_empty_element_array(self):
205205
class EmptyArray(Array):
206206
_type_ = c_int
207207
_length_ = 0
208208

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

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

0 commit comments

Comments
 (0)
0