From: Benjamin Peterson Date: Mon, 10 Mar 2014 01:59:24 +0000 (-0500) Subject: use assertEqual instead of the deprecated assertEquals (closes #20877) X-Git-Tag: v3.4.1rc1~233^2~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bcfcfc51f89e67f8cc890984f4f4054532706841;p=python use assertEqual instead of the deprecated assertEquals (closes #20877) --- diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 9da6338099..bba8820ab1 100644 --- 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