use assertEqual instead of the deprecated assertEquals (closes #20877)

This commit is contained in:
Benjamin Peterson 2014-03-09 20:59:24 -05:00
parent dcbd83321b
commit bcfcfc51f8
1 changed files with 2 additions and 2 deletions

View File

@ -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