mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
add matrix multiplication operator support to 2to3
This commit is contained in:
parent
0134a35bac
commit
4ab92c800a
6 changed files with 19 additions and 9 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue