diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-10-05 18:09:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 18:09:56 (GMT) |
commit | 4642d5f59828e774585e9895b538b24d71b9df8e (patch) | |
tree | e3db0b331ea365d9c4029bbfe17cb15ce38f4ad9 /Lib/test/test_grammar.py | |
parent | 4313a293dae579f3406aa94508ff3803a79b0344 (diff) | |
download | cpython-4642d5f59828e774585e9895b538b24d71b9df8e.zip cpython-4642d5f59828e774585e9895b538b24d71b9df8e.tar.gz cpython-4642d5f59828e774585e9895b538b24d71b9df8e.tar.bz2 |
Use assertEqual() instead of assertEquals(). (GH-9721)
Fixes warnings in tests added in bpo-32117 and bpo-34603.
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r-- | Lib/test/test_grammar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 462e77a..9dd42b4 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 ())") |