Skip to content

Commit

Permalink
CI: Adjust pyarrow depr warning to account for different newlines on … (
Browse files Browse the repository at this point in the history
pandas-dev#56967)

* CI: Adjust pyarrow depr warning to account for different newlines on Windows

* try something else
  • Loading branch information
lithomas1 authored Jan 19, 2024
1 parent 157e97b commit 696d78c
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 696d78c

Please sign in to comment.