Skip to content

Commit

Permalink
IR: Goat sacrifices to appease linting gods
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Jan 17, 2025
1 parent e16c1e9 commit 274b0a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loki/ir/tests/test_ir_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_conditional(scope, n, a_i):

# Test auto-casting with unnamed constructor args
cond = ir.Conditional(condition)
assert cond.body == () and not cond.else_body
assert cond.body is () and not cond.else_body
cond = ir.Conditional(condition, assign)
assert cond.body == (assign,) and not cond.else_body
cond = ir.Conditional(condition, body=[assign, (assign,)], else_body=[assign, None, (assign,)])
Expand Down Expand Up @@ -251,7 +251,7 @@ def test_section(n, a_n, a_i):

# Test auto-casting with unnamed constructor args
sec = ir.Section()
assert sec.body == ()
assert sec.body is ()
sec = ir.Section([(assign,), assign, None, assign])
assert sec.body == (assign, assign, assign)

Expand Down

0 comments on commit 274b0a0

Please sign in to comment.