]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725) (GH-9727)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 5 Oct 2018 19:11:21 +0000 (12:11 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 5 Oct 2018 19:11:21 +0000 (22:11 +0300)
Fixes warnings in test added in bpo-34603.
(cherry picked from commit 4642d5f59828e774585e9895b538b24d71b9df8e)
(cherry picked from commit 6bffe50f5fff8e8a40ae32c3e9c408622a15caf6)

Lib/ctypes/test/test_win32.py

index ee722704a35d7f5ae30a90d3f30bed76ac216611..a2941f3fe0785a3271e40828c2534e1ff348759c 100644 (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)