use assertEqual instead of the deprecated assertEquals (closes #20877)
This commit is contained in:
parent
dcbd83321b
commit
bcfcfc51f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue