add matrix multiplication operator support to 2to3

This commit is contained in:
Benjamin Peterson 2014-04-10 00:12:47 -04:00
parent 0134a35bac
commit 4ab92c800a
6 changed files with 19 additions and 9 deletions

View file

@ -48,6 +48,12 @@ class GrammarTest(support.TestCase):
raise AssertionError("Syntax shouldn't have been valid")
class TestMatrixMultiplication(GrammarTest):
def test_matrix_multiplication_operator(self):
self.validate("a @ b")
self.validate("a @= b")
class TestRaiseChanges(GrammarTest):
def test_2x_style_1(self):
self.validate("raise")