[Python-checkins] Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725) (GH-9727)

Serhiy Storchaka webhook-mailer at python.org
Fri Oct 5 15:11:26 EDT 2018

commit: d02490a9a9c238ed7ded1120877fdfdce16364a3
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-10-05T22:11:21+03:00

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

Fixes warnings in test added in bpo-34603.
(cherry picked from commit 4642d5f59828e774585e9895b538b24d71b9df8e)
(cherry picked from commit 6bffe50f5fff8e8a40ae32c3e9c408622a15caf6)

M Lib/ctypes/test/test_win32.py

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 S(Structure):
             for i, f in enumerate(fields):
                 value = getattr(res, f[0])
                 expected = bytes([ord('a') + i])
-                self.assertEquals(value, expected)
+                self.assertEqual(value, expected)

More information about the Python-checkins mailing list