From 274b0a0c8d7067ec8fbd5fbf91001398270e0635 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 17 Jan 2025 07:02:06 +0000 Subject: [PATCH] IR: Goat sacrifices to appease linting gods --- loki/ir/tests/test_ir_nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loki/ir/tests/test_ir_nodes.py b/loki/ir/tests/test_ir_nodes.py index a6488236d..5179d6b58 100644 --- a/loki/ir/tests/test_ir_nodes.py +++ b/loki/ir/tests/test_ir_nodes.py @@ -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,)]) @@ -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)