diff options
| author | Benjamin Peterson <benjamin@python.org> | 2014-04-10 00:12:47 -0400 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2014-04-10 00:12:47 -0400 |
| commit | 4ab92c800a6f2b75743d4a0b4dfd9995723f3647 (patch) | |
| tree | fbd1b149e63d8427f7237fb41dd76ec2a863ef11 /Lib/lib2to3/tests/test_parser.py | |
| parent | 0134a35bac4310c07c571e8d7378199783fbb388 (diff) | |
| download | cpython-git-4ab92c800a6f2b75743d4a0b4dfd9995723f3647.tar.gz | |
add matrix multiplication operator support to 2to3
Diffstat (limited to 'Lib/lib2to3/tests/test_parser.py')
| -rw-r--r-- | Lib/lib2to3/tests/test_parser.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/lib2to3/tests/test_parser.py b/Lib/lib2to3/tests/test_parser.py index a383a14e30..83682b7dc5 100644 --- a/Lib/lib2to3/tests/test_parser.py +++ b/Lib/lib2to3/tests/test_parser.py @@ -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") |
