Skip to content

Commit 696d78c

Browse files
authored
CI: Adjust pyarrow depr warning to account for different newlines on … (#56967)
* CI: Adjust pyarrow depr warning to account for different newlines on Windows * try something else
1 parent 157e97b commit 696d78c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: pandas/tests/test_common.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -286,4 +286,7 @@ def test_pyarrow_missing_warn(module):
286286
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466
287287
""" # noqa: E501
288288
stderr_msg = response.stderr.decode("utf-8")
289-
assert msg in stderr_msg, stderr_msg
289+
# Split by \n to avoid \r\n vs \n differences on Windows/Unix
290+
# https://stackoverflow.com/questions/11989501/replacing-r-n-with-n
291+
stderr_msg = "\n".join(stderr_msg.splitlines())
292+
assert msg in stderr_msg

0 commit comments

Comments
 (0)