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 <47963215+lithomas1@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and lithomas1 committed 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
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.