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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bcfcfc51f89e67f8cc890984f4f4054532706841;p=thirdparty%2FPython%2Fcpython.git use assertEqual instead of the deprecated assertEquals (closes #20877) --- diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 9da633809937..bba8820ab1e3 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