Skip to content

Commit

Permalink
ci: failing cotangent test (#8571)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrist authored Mar 6, 2024
1 parent 66b4dc0 commit e97d0d3
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions ibis/backends/tests/test_numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from ibis import literal as L
from ibis.backends.tests.errors import (
ArrowNotImplementedError,
DuckDBOutOfRangeException,
DuckDBParserException,
ExaQueryError,
GoogleBadRequest,
Expand Down Expand Up @@ -849,23 +848,11 @@ def test_trig_functions_columns(backend, expr, alltypes, df, expected_fn):
backend.assert_series_equal(result, expected)


@pytest.mark.notyet(
["mssql", "mysql", "duckdb", "exasol"],
raises=(
PyODBCProgrammingError,
MySQLOperationalError,
DuckDBOutOfRangeException,
ExaQueryError,
),
)
@pytest.mark.broken(
["sqlite", "impala"], raises=AssertionError, reason="behavior doesn't match numpy"
)
def test_cotangent(backend, alltypes, df):
dc_max = df.double_col.max()
expr = alltypes.select(tmp=(_.double_col / dc_max).cot())
expr = alltypes.select(tmp=(0.5 + _.double_col / dc_max).cot())
result = expr.tmp.to_pandas()
expected = 1.0 / np.tan(df.double_col / dc_max).rename("tmp")
expected = 1.0 / np.tan(0.5 + df.double_col / dc_max).rename("tmp")
backend.assert_series_equal(result, expected)


Expand Down

0 comments on commit e97d0d3

Please sign in to comment.