mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use assertEqual() instead of assertEquals(). (GH-9721)
Fixes warnings in tests added in bpo-32117 and bpo-34603.
This commit is contained in:
parent
4313a293da
commit
4642d5f598
2 changed files with 2 additions and 2 deletions
|
@ -989,7 +989,7 @@ class GrammarTests(unittest.TestCase):
|
|||
def g(): f((yield from ()), 1)
|
||||
# Do not require parenthesis for tuple unpacking
|
||||
def g(): rest = 4, 5, 6; yield 1, 2, 3, *rest
|
||||
self.assertEquals(list(g()), [(1, 2, 3, 4, 5, 6)])
|
||||
self.assertEqual(list(g()), [(1, 2, 3, 4, 5, 6)])
|
||||
check_syntax_error(self, "def g(): f(yield 1)")
|
||||
check_syntax_error(self, "def g(): f(yield 1, 1)")
|
||||
check_syntax_error(self, "def g(): f(yield from ())")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue