Skip to content

Commit

Permalink
Backport PR #56967 on branch 2.2.x (CI: Adjust pyarrow depr warning t…
Browse files Browse the repository at this point in the history
…o account for different newlines on …) (#56969)

Backport PR #56967: CI: Adjust pyarrow depr warning to account for different newlines on …

Co-authored-by: Thomas Li <[email protected]>
  • Loading branch information
meeseeksmachine and lithomas1 authored Jan 20, 2024
1 parent fd3f571 commit 2fa26fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pandas/tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,7 @@ def test_pyarrow_missing_warn(module):
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466
""" # noqa: E501
stderr_msg = response.stderr.decode("utf-8")
assert msg in stderr_msg, stderr_msg
# Split by \n to avoid \r\n vs \n differences on Windows/Unix
# https://stackoverflow.com/questions/11989501/replacing-r-n-with-n
stderr_msg = "\n".join(stderr_msg.splitlines())
assert msg in stderr_msg

0 comments on commit 2fa26fd

Please sign in to comment.