@@ -1795,7 +1795,7 @@ def test_Labeled(self):
17951795
17961796 def test_Expression (self ):
17971797 tree = jast .parse ("x;" , jast .ParseMode .STMT )
1798- self .assertIsInstance (tree , jast .Expression )
1798+ self .assertIsInstance (tree , jast .Expr )
17991799 self ._test_name (tree .value , "x" )
18001800
18011801 def test_If (self ):
@@ -1863,7 +1863,7 @@ def test_Switch(self):
18631863 self .assertIsInstance (label , jast .Case )
18641864 self ._test_int_constant (label .guard , 24 )
18651865 self .assertEqual (2 , len (group .body ))
1866- self .assertIsInstance (group .body [0 ], jast .Expression )
1866+ self .assertIsInstance (group .body [0 ], jast .Expr )
18671867 self .assertIsInstance (group .body [1 ], jast .Return )
18681868 group = block .groups [1 ]
18691869 self .assertIsInstance (group , jast .switchgroup )
@@ -2481,7 +2481,7 @@ def test_Constructor(self):
24812481 self .assertIsInstance (tree .body , jast .Block )
24822482 self .assertEqual (1 , len (tree .body .body ))
24832483 stmt = tree .body .body [0 ]
2484- self .assertIsInstance (stmt , jast .Expression )
2484+ self .assertIsInstance (stmt , jast .Expr )
24852485 expr = stmt .value
24862486 self .assertIsInstance (expr , jast .Call )
24872487 self .assertIsInstance (expr .func , jast .Super )
@@ -2503,7 +2503,7 @@ def test_Constructor_compact(self):
25032503 self .assertIsInstance (tree .body , jast .Block )
25042504 self .assertEqual (1 , len (tree .body .body ))
25052505 stmt = tree .body .body [0 ]
2506- self .assertIsInstance (stmt , jast .Expression )
2506+ self .assertIsInstance (stmt , jast .Expr )
25072507 expr = stmt .value
25082508 self .assertIsInstance (expr , jast .Call )
25092509 self .assertIsInstance (expr .func , jast .Super )
@@ -2519,7 +2519,7 @@ def test_Initializer(self):
25192519 self .assertIsInstance (tree .body , jast .Block )
25202520 self .assertEqual (1 , len (tree .body .body ))
25212521 stmt = tree .body .body [0 ]
2522- self .assertIsInstance (stmt , jast .Expression )
2522+ self .assertIsInstance (stmt , jast .Expr )
25232523 self ._test_name (stmt .value , "x" )
25242524
25252525 def test_Initializer_static (self ):
@@ -2532,7 +2532,7 @@ def test_Initializer_static(self):
25322532 self .assertIsInstance (tree .body , jast .Block )
25332533 self .assertEqual (1 , len (tree .body .body ))
25342534 stmt = tree .body .body [0 ]
2535- self .assertIsInstance (stmt , jast .Expression )
2535+ self .assertIsInstance (stmt , jast .Expr )
25362536 self ._test_name (stmt .value , "x" )
25372537
25382538 def test_Interface (self ):
0 commit comments