Skip to content

TST: Remove deprecation check from test_pyarrow_engine #58175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions pandas/tests/io/parser/test_unsupported.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading