From 45e3c084048924f39e126b717743834e92b90237 Mon Sep 17 00:00:00 2001 From: Abdulaziz Aloqeely <52792999+DAzVise@users.noreply.github.com> Date: Mon, 8 Apr 2024 00:52:32 +0300 Subject: [PATCH] Delete deprecation check --- pandas/tests/io/parser/test_unsupported.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pandas/tests/io/parser/test_unsupported.py b/pandas/tests/io/parser/test_unsupported.py index 8d4c28bd61fa1..44a55cf3be240 100644 --- a/pandas/tests/io/parser/test_unsupported.py +++ b/pandas/tests/io/parser/test_unsupported.py @@ -155,12 +155,8 @@ def test_pyarrow_engine(self): kwargs[default] = "warn" warn = None - depr_msg = None + depr_msg = "The 'delim_whitespace' keyword in pd.read_csv is deprecated" if "delim_whitespace" in kwargs: - depr_msg = "The 'delim_whitespace' keyword in pd.read_csv is deprecated" - warn = FutureWarning - if "verbose" in kwargs: - depr_msg = "The 'verbose' keyword in pd.read_csv is deprecated" warn = FutureWarning with pytest.raises(ValueError, match=msg):