Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725)

Fixes warnings in test added in bpo-34603.
(cherry picked from commit 4642d5f598)
This commit is contained in:
Serhiy Storchaka 2018-10-05 21:46:24 +03:00 committed by GitHub
parent b57f800b35
commit 6bffe50f5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class ReturnStructSizesTestCase(unittest.TestCase):
for i, f in enumerate(fields):
value = getattr(res, f[0])
expected = bytes([ord('a') + i])
self.assertEquals(value, expected)
self.assertEqual(value, expected)