Commit 307d4cb9 authored by Stefan Krah's avatar Stefan Krah Committed by GitHub

Use assertEqual(). (#13883)

parent 7f8a38a7
......@@ -213,7 +213,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):
......@@ -221,7 +221,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment