mirror of https://github.com/python/cpython
merge 3.4
This commit is contained in:
commit
82f69fd93b
|
@ -155,4 +155,5 @@ testlist1: test (',' test)*
|
|||
# not used in grammar, but may appear in "node" passed from Parser to Compiler
|
||||
encoding_decl: NAME
|
||||
|
||||
yield_expr: 'yield' [testlist]
|
||||
yield_expr: 'yield' [yield_arg]
|
||||
yield_arg: 'from' test | testlist
|
||||
|
|
|
@ -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…
Reference in New Issue