From 08dfaa483af0bc70db4d7bd71e5ac120a47c48e8 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Tue, 7 Jan 2025 11:49:34 +0000 Subject: [PATCH] chore: ignore reverted warning --- pyproject.toml | 2 ++ tests/frame/join_test.py | 3 --- tests/hypothesis/join_test.py | 1 - tests/spark_like_test.py | 3 --- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4d904d5b2..bea188a59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -162,6 +162,8 @@ filterwarnings = [ 'ignore:.*You are using pyarrow version', # This warning was temporarily raised by pandas but then reverted. 'ignore:.*Passing a BlockManager to DataFrame:DeprecationWarning', + # This warning was temporarily raised by Polars but then reverted. + 'ignore:.*The default coalesce behavior of left join will change:DeprecationWarning', ] xfail_strict = true markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"] diff --git a/tests/frame/join_test.py b/tests/frame/join_test.py index 4aa68e571..7332cb254 100644 --- a/tests/frame/join_test.py +++ b/tests/frame/join_test.py @@ -233,7 +233,6 @@ def test_join_not_implemented(constructor: Constructor, how: str) -> None: df.join(df, left_on="antananarivo", right_on="antananarivo", how=how) # type: ignore[arg-type] -@pytest.mark.filterwarnings("ignore:the default coalesce behavior") def test_left_join(constructor: Constructor) -> None: data_left = { "antananarivo": [1.0, 2, 3], @@ -272,7 +271,6 @@ def test_left_join(constructor: Constructor) -> None: assert_equal_data(result_on_list, expected_on_list) -@pytest.mark.filterwarnings("ignore: the default coalesce behavior") def test_left_join_multiple_column(constructor: Constructor) -> None: data_left = {"antananarivo": [1, 2, 3], "bob": [4, 5, 6], "index": [0, 1, 2]} data_right = {"antananarivo": [1, 2, 3], "c": [4, 5, 6], "index": [0, 1, 2]} @@ -290,7 +288,6 @@ def test_left_join_multiple_column(constructor: Constructor) -> None: assert_equal_data(result, expected) -@pytest.mark.filterwarnings("ignore: the default coalesce behavior") def test_left_join_overlapping_column(constructor: Constructor) -> None: data_left = { "antananarivo": [1.0, 2, 3], diff --git a/tests/hypothesis/join_test.py b/tests/hypothesis/join_test.py index 7f1cd8103..da4a61679 100644 --- a/tests/hypothesis/join_test.py +++ b/tests/hypothesis/join_test.py @@ -134,7 +134,6 @@ def test_cross_join( # pragma: no cover ), ) @pytest.mark.slow -@pytest.mark.filterwarnings("ignore:the default coalesce behavior") def test_left_join( # pragma: no cover a_left_data: list[int], b_left_data: list[int], diff --git a/tests/spark_like_test.py b/tests/spark_like_test.py index 3d67eac53..f0c66ab04 100644 --- a/tests/spark_like_test.py +++ b/tests/spark_like_test.py @@ -830,7 +830,6 @@ def test_semi_join( assert_equal_data(result, expected) -@pytest.mark.filterwarnings("ignore:the default coalesce behavior") def test_left_join(pyspark_constructor: Constructor) -> None: data_left = { "antananarivo": [1.0, 2, 3], @@ -874,7 +873,6 @@ def test_left_join(pyspark_constructor: Constructor) -> None: assert_equal_data(result_on_list, expected_on_list) -@pytest.mark.filterwarnings("ignore: the default coalesce behavior") def test_left_join_multiple_column(pyspark_constructor: Constructor) -> None: data_left = {"antananarivo": [1, 2, 3], "bob": [4, 5, 6], "idx": [0, 1, 2]} data_right = {"antananarivo": [1, 2, 3], "c": [4, 5, 6], "idx": [0, 1, 2]} @@ -894,7 +892,6 @@ def test_left_join_multiple_column(pyspark_constructor: Constructor) -> None: assert_equal_data(result, expected) -@pytest.mark.filterwarnings("ignore: the default coalesce behavior") def test_left_join_overlapping_column(pyspark_constructor: Constructor) -> None: data_left = { "antananarivo": [1.0, 2, 3],