From e97d0d3f23cec632515a3899790da0c38964d8e3 Mon Sep 17 00:00:00 2001 From: Jim Crist-Harif Date: Wed, 6 Mar 2024 15:59:57 -0600 Subject: [PATCH] ci: failing cotangent test (#8571) --- ibis/backends/tests/test_numeric.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/ibis/backends/tests/test_numeric.py b/ibis/backends/tests/test_numeric.py index b299029824fa..d8a29f9cadc0 100644 --- a/ibis/backends/tests/test_numeric.py +++ b/ibis/backends/tests/test_numeric.py @@ -17,7 +17,6 @@ from ibis import literal as L from ibis.backends.tests.errors import ( ArrowNotImplementedError, - DuckDBOutOfRangeException, DuckDBParserException, ExaQueryError, GoogleBadRequest, @@ -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)