summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-10-05 19:11:21 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-10-05 19:11:21 (GMT)
commitd02490a9a9c238ed7ded1120877fdfdce16364a3 (patch)
treeca92dd231238445c742804938a5ca5460e45539d
parent467360eeb24525e330d653826f21f30f47481d08 (diff)
downloadcpython-d02490a9a9c238ed7ded1120877fdfdce16364a3.zip
cpython-d02490a9a9c238ed7ded1120877fdfdce16364a3.tar.gz
cpython-d02490a9a9c238ed7ded1120877fdfdce16364a3.tar.bz2
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)
-rw-r--r--Lib/ctypes/test/test_win32.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_win32.py b/Lib/ctypes/test/test_win32.py
index ee72270..a2941f3 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)