Use assertEqual(). (#13886)

This commit is contained in:
Miss Islington (bot) 2019-06-07 02:47:16 -07:00 committed by Stefan Krah
parent f09d91552c
commit 4ea9dbda4a
1 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ class ArrayTestCase(unittest.TestCase):
_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):
@ -207,7 +207,7 @@ class ArrayTestCase(unittest.TestCase):
_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