diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-07 02:47:16 -0700 |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2019-06-07 11:47:16 +0200 |
commit | 4ea9dbda4ad823875ed79a25062a7f5415d91b22 (patch) | |
tree | dbcb7bdb0ea4f724bb9369bd6b5217ccf0a59f68 | |
parent | f09d91552cc39c65a386f4bfb3a7d0d05cb13d01 (diff) | |
download | cpython-git-4ea9dbda4ad823875ed79a25062a7f5415d91b22.tar.gz |
Use assertEqual(). (#13886)
-rw-r--r-- | Lib/ctypes/test/test_arrays.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ctypes/test/test_arrays.py b/Lib/ctypes/test/test_arrays.py index 9e41f45dc9..63a00b9e3c 100644 --- a/Lib/ctypes/test/test_arrays.py +++ b/Lib/ctypes/test/test_arrays.py @@ -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 |