diff options
author | Stefan Krah <skrah@bytereef.org> | 2019-06-07 11:18:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-07 11:18:34 +0200 |
commit | 307d4cb957b9d34fdbbb40730f738c61c2e49be9 (patch) | |
tree | 80582ff9a506ac33627d0c8974d8b2c6ca649477 | |
parent | 7f8a38a7c47823c17adab469fcb4f762f4e945b7 (diff) | |
download | cpython-git-307d4cb957b9d34fdbbb40730f738c61c2e49be9.tar.gz |
Use assertEqual(). (#13883)
-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 a3e6d76940..14603b7049 100644 --- a/Lib/ctypes/test/test_arrays.py +++ b/Lib/ctypes/test/test_arrays.py @@ -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 |