10000 TST: Old issues by mroeschke · Pull Request #41607 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TST: Old issues #41607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 24, 2021
Prev Previous commit
Next Next commit
normalize carriage return for windows
  • Loading branch information
mroeschke committed May 21, 2021
commit 14e78fd50221c93cc91eb40dafdc0061c2e54160
7 changes: 5 additions & 2 deletions pandas/tests/frame/methods/test_to_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1333,8 +1333,11 @@ def test_to_csv_numpy_16_bug(self):

def test_to_csv_na_quoting(self):
# GH 15891
result = DataFrame([None, None]).to_csv(
None, header=False, index=False, na_rep=""
# Normalize carriage return for Windows OS
result = (
DataFrame([None, None])
.to_csv(None, header=False, index=False, na_rep="")
.replace("\r\n", "\n")
)
expected = '""\n""\n'
assert result == expected
0