Skip to content

Commit 6c7a11f

Browse files
lithomas1meeseeksmachine
authored andcommitted
Backport PR pandas-dev#56967: CI: Adjust pyarrow depr warning to account for different newlines on …
1 parent fd3f571 commit 6c7a11f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)