Skip to content

Commit

Permalink
test: remove bogus test case
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jul 23, 2024
1 parent 9705936 commit bc28968
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ibis/tests/expr/test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,11 @@ def test_case_mixed_type():
assert result["label"].type().equals(dt.string)


def test_err_on_nonbool(table):
def test_err_on_nonbool_expr(table):
with pytest.raises(SignatureValidationError):
ibis.case().when(table.a, "bar").else_("baz").end()


@pytest.mark.xfail(reason="Literal('foo', type=bool), should error, but doesn't")
def test_err_on_nonbool2():
with pytest.raises(SignatureValidationError):
ibis.case().when("foo", "bar").else_("baz").end()
ibis.case().when(ibis.literal(1), "bar").else_("baz").end()


def test_err_on_noncomparable(table):
Expand Down

0 comments on commit bc28968

Please sign in to comment.