summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/tests
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-10 04:12:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-04-10 04:12:47 (GMT)
commit4ab92c800a6f2b75743d4a0b4dfd9995723f3647 (patch)
treefbd1b149e63d8427f7237fb41dd76ec2a863ef11 /Lib/lib2to3/tests
parent0134a35bac4310c07c571e8d7378199783fbb388 (diff)
downloadcpython-4ab92c800a6f2b75743d4a0b4dfd9995723f3647.zip
cpython-4ab92c800a6f2b75743d4a0b4dfd9995723f3647.tar.gz
cpython-4ab92c800a6f2b75743d4a0b4dfd9995723f3647.tar.bz2
add matrix multiplication operator support to 2to3
Diffstat (limited to 'Lib/lib2to3/tests')
-rw-r--r--Lib/lib2to3/tests/test_parser.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/lib2to3/tests/test_parser.py b/Lib/lib2to3/tests/test_parser.py
index a383a14..83682b7 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")