diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-03-10 01:59:24 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-03-10 01:59:24 (GMT) |
commit | bcfcfc51f89e67f8cc890984f4f4054532706841 (patch) | |
tree | 9c42234f2d15e8498c171c06335b76b362f3d3a5 /Lib | |
parent | dcbd83321b56f7db31c52ee45147410b8145f864 (diff) | |
download | cpython-bcfcfc51f89e67f8cc890984f4f4054532706841.zip cpython-bcfcfc51f89e67f8cc890984f4f4054532706841.tar.gz cpython-bcfcfc51f89e67f8cc890984f4f4054532706841.tar.bz2 |
use assertEqual instead of the deprecated assertEquals (closes #20877)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_grammar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 9da6338..bba8820 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 |