changeset 89555:2bda1065e931

use assertEqual instead of the deprecated assertEquals (closes #20877) [#20877]
author Benjamin Peterson <[email protected]>
date Sun, 09 Mar 2014 20:59:24 -0500
parents 5b52db6fc7dc
children d083b6ead156
files Lib/test/test_grammar.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/test/test_grammar.py
+++ b/Lib/test/test_grammar.py
@@ -319,8 +319,8 @@ class GrammarTests(unittest.TestCase):
             def f(self, *, __kw:1):
                 pass
         class Ham(Spam): pass
-        self.assertEquals(Spam.f.__annotations__, {'_Spam__kw': 1})
-        self.assertEquals(Ham.f.__annotations__, {'_Spam__kw': 1})
+        self.assertEqual(Spam.f.__annotations__, {'_Spam__kw': 1})
+        self.assertEqual(Ham.f.__annotations__, {'_Spam__kw': 1})
         # Check for SF Bug #1697248 - mixing decorators and a return annotation
         def null(x): return x
         @null