From 3d81fda2959079ad0349d7b1b2eecb6d206ee525 Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Fri, 7 Jun 2019 11:18:34 +0200 Subject: [PATCH] Use assertEqual(). (GH-13883) (cherry picked from commit 307d4cb957b9d34fdbbb40730f738c61c2e49be9) Co-authored-by: Stefan Krah --- Lib/ctypes/test/test_arrays.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/ctypes/test/test_arrays.py b/Lib/ctypes/test/test_arrays.py index 9e41f45dc9b174..63a00b9e3cdb87 100644 --- a/Lib/ctypes/test/test_arrays.py +++ b/Lib/ctypes/test/test_arrays.py @@ -199,7 +199,7 @@ class EmptyStruct(Structure): _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 EmptyArray(Array): _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