mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
teach 2to3 about 'yield from'
This commit is contained in:
parent
4ab92c800a
commit
0654be18b3
3 changed files with 11 additions and 1 deletions
|
@ -54,6 +54,13 @@ class TestMatrixMultiplication(GrammarTest):
|
|||
self.validate("a @= b")
|
||||
|
||||
|
||||
class TestYieldFrom(GrammarTest):
|
||||
def test_matrix_multiplication_operator(self):
|
||||
self.validate("yield from x")
|
||||
self.validate("(yield from x) + y")
|
||||
self.invalid_syntax("yield from")
|
||||
|
||||
|
||||
class TestRaiseChanges(GrammarTest):
|
||||
def test_2x_style_1(self):
|
||||
self.validate("raise")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue