Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 307d4cb

Browse files
authored
Use assertEqual(). (python#13883)
1 parent 7f8a38a commit 307d4cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Lib/ctypes/test/test_arrays.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ class EmptyStruct(Structure):
213213
_fields_ = []
214214

215215
obj = (EmptyStruct * 2)() # bpo37188: Floating point exception
216-
assertsizeof(obj)==0
216+
self.assertEqual(sizeof(obj), 0)
217217

218218
def test_empty_element_array(self):
219219
class EmptyArray(Array):
220220
_type_ = c_int
221221
_length_ = 0
222222

223223
obj = (EmptyArray * 2)() # bpo37188: Floating point exception
224-
assertsizeof(obj)==0
224+
self.assertEqual(sizeof(obj), 0)
225225

226226
def test_bpo36504_signed_int_overflow(self):
227227
# The overflow check in PyCArrayType_new() could cause signed integer

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /