diff --git a/Lib/ctypes/test/test_win32.py b/Lib/ctypes/test/test_win32.py index ee722704a35..a2941f3fe07 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) diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 462e77a0be5..9dd42b4f5da 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -989,7 +989,7 @@ def g(): f((yield from ())) def g(): f((yield from ()), 1) # Do not require parenthesis for tuple unpacking def g(): rest = 4, 5, 6; yield 1, 2, 3, *rest - self.assertEquals(list(g()), [(1, 2, 3, 4, 5, 6)]) + self.assertEqual(list(g()), [(1, 2, 3, 4, 5, 6)]) check_syntax_error(self, "def g(): f(yield 1)") check_syntax_error(self, "def g(): f(yield 1, 1)") check_syntax_error(self, "def g(): f(yield from ())")