diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2018-10-05 21:09:56 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-05 21:09:56 +0300 |
| commit | 4642d5f59828e774585e9895b538b24d71b9df8e (patch) | |
| tree | e3db0b331ea365d9c4029bbfe17cb15ce38f4ad9 | |
| parent | 4313a293dae579f3406aa94508ff3803a79b0344 (diff) | |
| download | cpython-git-4642d5f59828e774585e9895b538b24d71b9df8e.tar.gz | |
Use assertEqual() instead of assertEquals(). (GH-9721)
Fixes warnings in tests added in bpo-32117 and bpo-34603.
| -rw-r--r-- | Lib/ctypes/test/test_win32.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_grammar.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ctypes/test/test_win32.py b/Lib/ctypes/test/test_win32.py index ee722704a3..a2941f3fe0 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) diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 462e77a0be..9dd42b4f5d 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -989,7 +989,7 @@ class GrammarTests(unittest.TestCase): 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 ())") |
