Skip to content

Commit 4642d5f

Browse files
Use assertEqual() instead of assertEquals(). (pythonGH-9721)
Fixes warnings in tests added in bpo-32117 and bpo-34603.
1 parent 4313a29 commit 4642d5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/ctypes/test/test_win32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class S(Structure):
6868
for i, f in enumerate(fields):
6969
value = getattr(res, f[0])
7070
expected = bytes([ord('a') + i])
71-
self.assertEquals(value, expected)
71+
self.assertEqual(value, expected)
7272

7373

7474

Lib/test/test_grammar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ def g(): f((yield from ()))
989989
def g(): f((yield from ()), 1)
990990
# Do not require parenthesis for tuple unpacking
991991
def g(): rest = 4, 5, 6; yield 1, 2, 3, *rest
992-
self.assertEquals(list(g()), [(1, 2, 3, 4, 5, 6)])
992+
self.assertEqual(list(g()), [(1, 2, 3, 4, 5, 6)])
993993
check_syntax_error(self, "def g(): f(yield 1)")
994994
check_syntax_error(self, "def g(): f(yield 1, 1)")
995995
check_syntax_error(self, "def g(): f(yield from ())")

0 commit comments

Comments
 (0)