[Python-checkins] Use assertEqual(). (#13883)
Stefan Krah
webhook-mailer at python.org
Fri Jun 7 05:18:38 EDT 2019
https://github.com/python/cpython/commit/307d4cb957b9d34fdbbb40730f738c61c2e49be9
commit: 307d4cb957b9d34fdbbb40730f738c61c2e49be9
branch: master
author: Stefan Krah <skrah at bytereef.org>
committer: GitHub <noreply at github.com>
date: 2019-06-07T11:18:34+02:00
summary:
Use assertEqual(). (#13883)
files:
M Lib/ctypes/test/test_arrays.py
diff --git a/Lib/ctypes/test/test_arrays.py b/Lib/ctypes/test/test_arrays.py
index a3e6d76940e0..14603b7049c9 100644
--- a/Lib/ctypes/test/test_arrays.py
+++ b/Lib/ctypes/test/test_arrays.py
@@ -213,7 +213,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):
@@ -221,7 +221,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
More information about the Python-checkins
mailing list