Skip to content

Commit 8697282

Browse files
committed
adjusted tests for ifexp
1 parent dcc387c commit 8697282

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/test_jast.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -780,23 +780,20 @@ def test_IfExp_error(self):
780780
self.assertRaises(
781781
ValueError,
782782
jast.IfExp,
783-
test=jast.Constant(
784-
jast.BoolLiteral(True), body=jast.Constant(jast.IntLiteral(42))
785-
),
783+
test=jast.Constant(jast.BoolLiteral(True)),
784+
body=jast.Constant(jast.IntLiteral(42)),
786785
)
787786
self.assertRaises(
788787
ValueError,
789788
jast.IfExp,
790-
test=jast.Constant(
791-
jast.BoolLiteral(True), orelse=jast.Constant(jast.IntLiteral(0))
792-
),
789+
test=jast.Constant(jast.BoolLiteral(True)),
790+
orelse=jast.Constant(jast.IntLiteral(0)),
793791
)
794792
self.assertRaises(
795793
ValueError,
796794
jast.IfExp,
797-
body=jast.Constant(
798-
jast.IntLiteral(42), orelse=jast.Constant(jast.IntLiteral(0))
799-
),
795+
body=jast.Constant(jast.IntLiteral(42)),
796+
orelse=jast.Constant(jast.IntLiteral(0)),
800797
)
801798

802799
def test_BinOp(self):

0 commit comments

Comments
 (0)