From: Serhiy Storchaka Date: Fri, 5 Oct 2018 18:46:24 +0000 (+0300) Subject: Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725) X-Git-Tag: v3.7.1rc2~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6bffe50f5fff8e8a40ae32c3e9c408622a15caf6;p=thirdparty%2FPython%2Fcpython.git Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725) Fixes warnings in test added in bpo-34603. (cherry picked from commit 4642d5f59828e774585e9895b538b24d71b9df8e) --- diff --git a/Lib/ctypes/test/test_win32.py b/Lib/ctypes/test/test_win32.py index ee722704a35d..a2941f3fe078 100644 --- a/Lib/ctypes/test/test_win32.py +++ b/Lib/ctypes/test/test_win32.py @@ -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)