From 582c6bc644b70c8cabe72aa94aa3b88e2e4d1b13 Mon Sep 17 00:00:00 2001 From: Abdulaziz Aloqeely <52792999+Aloqeely@users.noreply.github.com> Date: Wed, 22 May 2024 19:46:07 +0300 Subject: [PATCH] Revert "Switch DeprecationWarning to FutureWarning" --- pandas/core/frame.py | 2 +- pandas/core/series.py | 6 +++--- pandas/tests/arrays/interval/test_interval_pyarrow.py | 8 ++++++-- pandas/tests/arrays/masked/test_arrow_compat.py | 2 +- pandas/tests/arrays/period/test_arrow_compat.py | 2 +- pandas/tests/copy_view/test_constructors.py | 4 ++-- pandas/tests/frame/test_block_internals.py | 4 ++-- pandas/tests/frame/test_constructors.py | 2 +- pandas/tests/io/json/test_readlines.py | 2 +- pandas/tests/io/parser/common/test_chunksize.py | 2 +- pandas/tests/io/parser/common/test_common_basic.py | 2 +- pandas/tests/io/parser/common/test_data_list.py | 2 +- pandas/tests/io/parser/common/test_decimal.py | 2 +- pandas/tests/io/parser/common/test_file_buffer_url.py | 2 +- pandas/tests/io/parser/common/test_float.py | 2 +- pandas/tests/io/parser/common/test_index.py | 2 +- pandas/tests/io/parser/common/test_inf.py | 2 +- pandas/tests/io/parser/common/test_ints.py | 2 +- pandas/tests/io/parser/common/test_iterator.py | 2 +- pandas/tests/io/parser/dtypes/test_categorical.py | 2 +- pandas/tests/io/parser/dtypes/test_dtypes_basic.py | 2 +- pandas/tests/io/parser/test_compression.py | 2 +- pandas/tests/io/parser/test_dialect.py | 2 +- pandas/tests/io/parser/test_encoding.py | 2 +- pandas/tests/io/parser/test_header.py | 2 +- pandas/tests/io/parser/test_index_col.py | 2 +- pandas/tests/io/parser/test_mangle_dupes.py | 2 +- pandas/tests/io/parser/test_na_values.py | 2 +- pandas/tests/io/parser/test_network.py | 2 +- pandas/tests/io/parser/test_parse_dates.py | 2 +- pandas/tests/io/parser/test_quoting.py | 2 +- pandas/tests/io/parser/test_skiprows.py | 2 +- pandas/tests/io/parser/test_unsupported.py | 2 +- pandas/tests/io/parser/usecols/test_parse_dates.py | 2 +- pandas/tests/io/parser/usecols/test_strings.py | 2 +- pandas/tests/io/parser/usecols/test_usecols_basic.py | 4 ++-- pandas/tests/io/test_common.py | 2 +- pandas/tests/io/test_feather.py | 2 +- pandas/tests/io/test_fsspec.py | 2 +- pandas/tests/io/test_gcs.py | 2 +- pandas/tests/io/test_http_headers.py | 2 +- pandas/tests/io/test_orc.py | 2 +- pandas/tests/io/test_parquet.py | 2 +- pandas/tests/io/test_sql.py | 2 +- 44 files changed, 54 insertions(+), 50 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 0ec5ee53138b7..03944aafff89f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -717,7 +717,7 @@ def __init__( f"Passing a {type(data).__name__} to {type(self).__name__} " "is deprecated and will raise in a future version. " "Use public APIs instead.", - FutureWarning, + DeprecationWarning, stacklevel=2, ) diff --git a/pandas/core/series.py b/pandas/core/series.py index b5ce4047ed6ea..7348b616fae10 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -380,7 +380,7 @@ def __init__( f"Passing a {type(data).__name__} to {type(self).__name__} " "is deprecated and will raise in a future version. " "Use public APIs instead.", - FutureWarning, + DeprecationWarning, stacklevel=2, ) data = data.copy(deep=False) @@ -408,7 +408,7 @@ def __init__( f"Passing a {type(data).__name__} to {type(self).__name__} " "is deprecated and will raise in a future version. " "Use public APIs instead.", - FutureWarning, + DeprecationWarning, stacklevel=2, ) @@ -478,7 +478,7 @@ def __init__( f"Passing a {type(data).__name__} to {type(self).__name__} " "is deprecated and will raise in a future version. " "Use public APIs instead.", - FutureWarning, + DeprecationWarning, stacklevel=2, ) allow_mgr = True diff --git a/pandas/tests/arrays/interval/test_interval_pyarrow.py b/pandas/tests/arrays/interval/test_interval_pyarrow.py index 2904bc4e3ff05..ef8701be81e2b 100644 --- a/pandas/tests/arrays/interval/test_interval_pyarrow.py +++ b/pandas/tests/arrays/interval/test_interval_pyarrow.py @@ -80,7 +80,9 @@ def test_arrow_array_missing(): assert result.storage.equals(expected) -@pytest.mark.filterwarnings("ignore:Passing a BlockManager to DataFrame:FutureWarning") +@pytest.mark.filterwarnings( + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" +) @pytest.mark.parametrize( "breaks", [[0.0, 1.0, 2.0, 3.0], pd.date_range("2017", periods=4, freq="D")], @@ -114,7 +116,9 @@ def test_arrow_table_roundtrip(breaks): tm.assert_frame_equal(result, expected[0:0]) -@pytest.mark.filterwarnings("ignore:Passing a BlockManager to DataFrame:FutureWarning") +@pytest.mark.filterwarnings( + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" +) @pytest.mark.parametrize( "breaks", [[0.0, 1.0, 2.0, 3.0], pd.date_range("2017", periods=4, freq="D")], diff --git a/pandas/tests/arrays/masked/test_arrow_compat.py b/pandas/tests/arrays/masked/test_arrow_compat.py index a1a7b7fa633a6..5f73370554473 100644 --- a/pandas/tests/arrays/masked/test_arrow_compat.py +++ b/pandas/tests/arrays/masked/test_arrow_compat.py @@ -5,7 +5,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) pa = pytest.importorskip("pyarrow") diff --git a/pandas/tests/arrays/period/test_arrow_compat.py b/pandas/tests/arrays/period/test_arrow_compat.py index a9a12fde64200..431309aca0df2 100644 --- a/pandas/tests/arrays/period/test_arrow_compat.py +++ b/pandas/tests/arrays/period/test_arrow_compat.py @@ -12,7 +12,7 @@ ) pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/copy_view/test_constructors.py b/pandas/tests/copy_view/test_constructors.py index 8521cebc6f792..bc931b53b37d0 100644 --- a/pandas/tests/copy_view/test_constructors.py +++ b/pandas/tests/copy_view/test_constructors.py @@ -123,7 +123,7 @@ def test_series_from_index_different_dtypes(): def test_series_from_block_manager_different_dtype(): ser = Series([1, 2, 3], dtype="int64") msg = "Passing a SingleBlockManager to Series" - with tm.assert_produces_warning(FutureWarning, match=msg): + with tm.assert_produces_warning(DeprecationWarning, match=msg): ser2 = Series(ser._mgr, dtype="int32") assert not np.shares_memory(get_array(ser), get_array(ser2)) assert ser2._mgr._has_no_reference(0) @@ -137,7 +137,7 @@ def test_dataframe_constructor_mgr_or_df(columns, use_mgr): if use_mgr: data = df._mgr - warn = FutureWarning + warn = DeprecationWarning else: data = df warn = None diff --git a/pandas/tests/frame/test_block_internals.py b/pandas/tests/frame/test_block_internals.py index 3ca41e9c23343..3f0e829f66361 100644 --- a/pandas/tests/frame/test_block_internals.py +++ b/pandas/tests/frame/test_block_internals.py @@ -44,14 +44,14 @@ def test_setitem_invalidates_datetime_index_freq(self): def test_cast_internals(self, float_frame): msg = "Passing a BlockManager to DataFrame" with tm.assert_produces_warning( - FutureWarning, match=msg, check_stacklevel=False + DeprecationWarning, match=msg, check_stacklevel=False ): casted = DataFrame(float_frame._mgr, dtype=int) expected = DataFrame(float_frame._series, dtype=int) tm.assert_frame_equal(casted, expected) with tm.assert_produces_warning( - FutureWarning, match=msg, check_stacklevel=False + DeprecationWarning, match=msg, check_stacklevel=False ): casted = DataFrame(float_frame._mgr, dtype=np.int32) expected = DataFrame(float_frame._series, dtype=np.int32) diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index f9e3f6ab876b8..e2f12e6e459cb 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -1729,7 +1729,7 @@ def test_constructor_manager_resize(self, float_frame): msg = "Passing a BlockManager to DataFrame" with tm.assert_produces_warning( - FutureWarning, match=msg, check_stacklevel=False + DeprecationWarning, match=msg, check_stacklevel=False ): result = DataFrame(float_frame._mgr, index=index, columns=columns) tm.assert_index_equal(result.index, Index(index)) diff --git a/pandas/tests/io/json/test_readlines.py b/pandas/tests/io/json/test_readlines.py index 7abf66e5ac3a7..d96ccb4b94cc2 100644 --- a/pandas/tests/io/json/test_readlines.py +++ b/pandas/tests/io/json/test_readlines.py @@ -15,7 +15,7 @@ from pandas.io.json._json import JsonReader pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/common/test_chunksize.py b/pandas/tests/io/parser/common/test_chunksize.py index 54ae0f9124cf2..78a0b016bd353 100644 --- a/pandas/tests/io/parser/common/test_chunksize.py +++ b/pandas/tests/io/parser/common/test_chunksize.py @@ -18,7 +18,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/common/test_common_basic.py b/pandas/tests/io/parser/common/test_common_basic.py index 89b8fb32299d8..d79e0c34edaab 100644 --- a/pandas/tests/io/parser/common/test_common_basic.py +++ b/pandas/tests/io/parser/common/test_common_basic.py @@ -27,7 +27,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") diff --git a/pandas/tests/io/parser/common/test_data_list.py b/pandas/tests/io/parser/common/test_data_list.py index ac152b1c08488..bf9293ddd841d 100644 --- a/pandas/tests/io/parser/common/test_data_list.py +++ b/pandas/tests/io/parser/common/test_data_list.py @@ -14,7 +14,7 @@ from pandas.io.parsers import TextParser pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") diff --git a/pandas/tests/io/parser/common/test_decimal.py b/pandas/tests/io/parser/common/test_decimal.py index 951fad0a811c2..eb6c97097e5fb 100644 --- a/pandas/tests/io/parser/common/test_decimal.py +++ b/pandas/tests/io/parser/common/test_decimal.py @@ -11,7 +11,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/common/test_file_buffer_url.py b/pandas/tests/io/parser/common/test_file_buffer_url.py index f625681221f11..ba31a9bc15fb5 100644 --- a/pandas/tests/io/parser/common/test_file_buffer_url.py +++ b/pandas/tests/io/parser/common/test_file_buffer_url.py @@ -29,7 +29,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") diff --git a/pandas/tests/io/parser/common/test_float.py b/pandas/tests/io/parser/common/test_float.py index 1b82b930fe0f9..4e0b61577f9e7 100644 --- a/pandas/tests/io/parser/common/test_float.py +++ b/pandas/tests/io/parser/common/test_float.py @@ -14,7 +14,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") skip_pyarrow = pytest.mark.usefixtures("pyarrow_skip") diff --git a/pandas/tests/io/parser/common/test_index.py b/pandas/tests/io/parser/common/test_index.py index 88b124060792d..2fcc80f58ae30 100644 --- a/pandas/tests/io/parser/common/test_index.py +++ b/pandas/tests/io/parser/common/test_index.py @@ -17,7 +17,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") diff --git a/pandas/tests/io/parser/common/test_inf.py b/pandas/tests/io/parser/common/test_inf.py index bf19b5b1a09b3..657aa3278a442 100644 --- a/pandas/tests/io/parser/common/test_inf.py +++ b/pandas/tests/io/parser/common/test_inf.py @@ -11,7 +11,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") diff --git a/pandas/tests/io/parser/common/test_ints.py b/pandas/tests/io/parser/common/test_ints.py index 7017908f2b2be..9322e8d54f5b8 100644 --- a/pandas/tests/io/parser/common/test_ints.py +++ b/pandas/tests/io/parser/common/test_ints.py @@ -15,7 +15,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") diff --git a/pandas/tests/io/parser/common/test_iterator.py b/pandas/tests/io/parser/common/test_iterator.py index 53eefb47a0060..091edb67f6e19 100644 --- a/pandas/tests/io/parser/common/test_iterator.py +++ b/pandas/tests/io/parser/common/test_iterator.py @@ -14,7 +14,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/dtypes/test_categorical.py b/pandas/tests/io/parser/dtypes/test_categorical.py index 5c229de3ea27d..15cbac54ff8d9 100644 --- a/pandas/tests/io/parser/dtypes/test_categorical.py +++ b/pandas/tests/io/parser/dtypes/test_categorical.py @@ -22,7 +22,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") diff --git a/pandas/tests/io/parser/dtypes/test_dtypes_basic.py b/pandas/tests/io/parser/dtypes/test_dtypes_basic.py index 9fb9f19c9de48..d45368dece6d2 100644 --- a/pandas/tests/io/parser/dtypes/test_dtypes_basic.py +++ b/pandas/tests/io/parser/dtypes/test_dtypes_basic.py @@ -24,7 +24,7 @@ ) pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/test_compression.py b/pandas/tests/io/parser/test_compression.py index faf23bc84f3a4..191d0de50b12f 100644 --- a/pandas/tests/io/parser/test_compression.py +++ b/pandas/tests/io/parser/test_compression.py @@ -14,7 +14,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/test_dialect.py b/pandas/tests/io/parser/test_dialect.py index bf7e37d534f06..7a72e66996d43 100644 --- a/pandas/tests/io/parser/test_dialect.py +++ b/pandas/tests/io/parser/test_dialect.py @@ -14,7 +14,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/test_encoding.py b/pandas/tests/io/parser/test_encoding.py index bec9fa2c256e3..5df8c3d27bf84 100644 --- a/pandas/tests/io/parser/test_encoding.py +++ b/pandas/tests/io/parser/test_encoding.py @@ -21,7 +21,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) skip_pyarrow = pytest.mark.usefixtures("pyarrow_skip") diff --git a/pandas/tests/io/parser/test_header.py b/pandas/tests/io/parser/test_header.py index fb3209fbe1629..85ce55b3bcf83 100644 --- a/pandas/tests/io/parser/test_header.py +++ b/pandas/tests/io/parser/test_header.py @@ -19,7 +19,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") diff --git a/pandas/tests/io/parser/test_index_col.py b/pandas/tests/io/parser/test_index_col.py index 98ce9c4313bb5..24d0a7626723e 100644 --- a/pandas/tests/io/parser/test_index_col.py +++ b/pandas/tests/io/parser/test_index_col.py @@ -17,7 +17,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") diff --git a/pandas/tests/io/parser/test_mangle_dupes.py b/pandas/tests/io/parser/test_mangle_dupes.py index 8d5be6ea58415..61d328138da96 100644 --- a/pandas/tests/io/parser/test_mangle_dupes.py +++ b/pandas/tests/io/parser/test_mangle_dupes.py @@ -15,7 +15,7 @@ pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/test_na_values.py b/pandas/tests/io/parser/test_na_values.py index 47893059e2f0d..1e370f649aef8 100644 --- a/pandas/tests/io/parser/test_na_values.py +++ b/pandas/tests/io/parser/test_na_values.py @@ -18,7 +18,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py index 17b802ca248a1..f63cc3d56bf89 100644 --- a/pandas/tests/io/parser/test_network.py +++ b/pandas/tests/io/parser/test_network.py @@ -19,7 +19,7 @@ from pandas.io.parsers import read_csv pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/test_parse_dates.py b/pandas/tests/io/parser/test_parse_dates.py index 89dc0b9146fab..3bb3d793606e1 100644 --- a/pandas/tests/io/parser/test_parse_dates.py +++ b/pandas/tests/io/parser/test_parse_dates.py @@ -30,7 +30,7 @@ from pandas.io.parsers import read_csv pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") diff --git a/pandas/tests/io/parser/test_quoting.py b/pandas/tests/io/parser/test_quoting.py index fd8a03ff548ed..a70b7e3389c1b 100644 --- a/pandas/tests/io/parser/test_quoting.py +++ b/pandas/tests/io/parser/test_quoting.py @@ -15,7 +15,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") skip_pyarrow = pytest.mark.usefixtures("pyarrow_skip") diff --git a/pandas/tests/io/parser/test_skiprows.py b/pandas/tests/io/parser/test_skiprows.py index f9a2cc9ef53c5..3cd2351f84c7a 100644 --- a/pandas/tests/io/parser/test_skiprows.py +++ b/pandas/tests/io/parser/test_skiprows.py @@ -19,7 +19,7 @@ xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/test_unsupported.py b/pandas/tests/io/parser/test_unsupported.py index 46989afdefeab..44a55cf3be240 100644 --- a/pandas/tests/io/parser/test_unsupported.py +++ b/pandas/tests/io/parser/test_unsupported.py @@ -21,7 +21,7 @@ import pandas.io.parsers.readers as parsers pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/usecols/test_parse_dates.py b/pandas/tests/io/parser/usecols/test_parse_dates.py index 71ff39c821a4e..0cf3fe894c916 100644 --- a/pandas/tests/io/parser/usecols/test_parse_dates.py +++ b/pandas/tests/io/parser/usecols/test_parse_dates.py @@ -15,7 +15,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail") skip_pyarrow = pytest.mark.usefixtures("pyarrow_skip") diff --git a/pandas/tests/io/parser/usecols/test_strings.py b/pandas/tests/io/parser/usecols/test_strings.py index 7906a8269a6c3..1538bd4e805f7 100644 --- a/pandas/tests/io/parser/usecols/test_strings.py +++ b/pandas/tests/io/parser/usecols/test_strings.py @@ -11,7 +11,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/parser/usecols/test_usecols_basic.py b/pandas/tests/io/parser/usecols/test_usecols_basic.py index f43f0e5c773a8..d55066d2d70bb 100644 --- a/pandas/tests/io/parser/usecols/test_usecols_basic.py +++ b/pandas/tests/io/parser/usecols/test_usecols_basic.py @@ -18,7 +18,7 @@ import pandas._testing as tm pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) _msg_validate_usecols_arg = ( @@ -38,7 +38,7 @@ skip_pyarrow = pytest.mark.usefixtures("pyarrow_skip") pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame is deprecated:FutureWarning" + "ignore:Passing a BlockManager to DataFrame is deprecated:DeprecationWarning" ) diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index c4f829c2ad0ec..e4b4d3a82669d 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -30,7 +30,7 @@ import pandas.io.common as icom pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/test_feather.py b/pandas/tests/io/test_feather.py index 941c37d698434..893728748f276 100644 --- a/pandas/tests/io/test_feather.py +++ b/pandas/tests/io/test_feather.py @@ -13,7 +13,7 @@ from pandas.io.feather_format import read_feather, to_feather # isort:skip pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) pa = pytest.importorskip("pyarrow") diff --git a/pandas/tests/io/test_fsspec.py b/pandas/tests/io/test_fsspec.py index e919ee4b9179c..f6fb032b9d51a 100644 --- a/pandas/tests/io/test_fsspec.py +++ b/pandas/tests/io/test_fsspec.py @@ -19,7 +19,7 @@ from pandas.util import _test_decorators as td pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/test_gcs.py b/pandas/tests/io/test_gcs.py index a30bd8a1995c2..4b2be41d0c9f9 100644 --- a/pandas/tests/io/test_gcs.py +++ b/pandas/tests/io/test_gcs.py @@ -20,7 +20,7 @@ from pandas.util import _test_decorators as td pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/test_http_headers.py b/pandas/tests/io/test_http_headers.py index 9efba872eb1cc..dfae294a147a2 100644 --- a/pandas/tests/io/test_http_headers.py +++ b/pandas/tests/io/test_http_headers.py @@ -17,7 +17,7 @@ pytest.mark.single_cpu, pytest.mark.network, pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ), ] diff --git a/pandas/tests/io/test_orc.py b/pandas/tests/io/test_orc.py index f11edd16208b5..de6d46492e916 100644 --- a/pandas/tests/io/test_orc.py +++ b/pandas/tests/io/test_orc.py @@ -19,7 +19,7 @@ import pyarrow as pa pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ) diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index 285cc2bf55c18..2860b3a6483af 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -46,7 +46,7 @@ pytestmark = [ pytest.mark.filterwarnings("ignore:DataFrame._data is deprecated:FutureWarning"), pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" ), ] diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index f666c9ac1e4d8..6058f34d25ad3 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -62,7 +62,7 @@ pytestmark = pytest.mark.filterwarnings( - "ignore:Passing a BlockManager to DataFrame:FutureWarning" + "ignore:Passing a BlockManager to DataFrame:DeprecationWarning" )