mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
use assertEqual instead of the deprecated assertEquals (closes #20877)
This commit is contained in:
parent
dcbd83321b
commit
bcfcfc51f8
1 changed files with 2 additions and 2 deletions
|
|
@ -319,8 +319,8 @@ class GrammarTests(unittest.TestCase):
|
||||||
def f(self, *, __kw:1):
|
def f(self, *, __kw:1):
|
||||||
pass
|
pass
|
||||||
class Ham(Spam): pass
|
class Ham(Spam): pass
|
||||||
self.assertEquals(Spam.f.__annotations__, {'_Spam__kw': 1})
|
self.assertEqual(Spam.f.__annotations__, {'_Spam__kw': 1})
|
||||||
self.assertEquals(Ham.f.__annotations__, {'_Spam__kw': 1})
|
self.assertEqual(Ham.f.__annotations__, {'_Spam__kw': 1})
|
||||||
# Check for SF Bug #1697248 - mixing decorators and a return annotation
|
# Check for SF Bug #1697248 - mixing decorators and a return annotation
|
||||||
def null(x): return x
|
def null(x): return x
|
||||||
@null
|
@null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue