diff options
| author | Benjamin Peterson <benjamin@python.org> | 2014-03-09 20:59:24 -0500 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2014-03-09 20:59:24 -0500 |
| commit | bcfcfc51f89e67f8cc890984f4f4054532706841 (patch) | |
| tree | 9c42234f2d15e8498c171c06335b76b362f3d3a5 /Lib/test/test_grammar.py | |
| parent | dcbd83321b56f7db31c52ee45147410b8145f864 (diff) | |
| download | cpython-git-bcfcfc51f89e67f8cc890984f4f4054532706841.tar.gz | |
use assertEqual instead of the deprecated assertEquals (closes #20877)
Diffstat (limited to 'Lib/test/test_grammar.py')
| -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 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 |
