Skip to content

Commit 0806f4a

Browse files
committed
Add chained comparison TypeError test for Expr
Added a test to ensure that chained comparisons involving Expr objects raise a TypeError, improving test coverage for invalid operations.
1 parent 14527ae commit 0806f4a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_Expr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ def test_le(model):
335335
with pytest.raises(TypeError):
336336
expr1 <= "invalid"
337337

338+
with pytest.raises(TypeError):
339+
1 <= expr1 <= 1
340+
338341

339342
def test_ge(model):
340343
m, x, y = model

0 commit comments

Comments
 (0)