Skip to content

Commit bcda52d

Browse files
committed
Expand comment on why this xfailed test was added
1 parent 5035ffc commit bcda52d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/tests/io/formats/test_to_csv.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ class TestToCSV(object):
1313
@pytest.mark.xfail((3, 6, 5) > sys.version_info >= (3, 5),
1414
reason='Python csv library bug')
1515
def test_to_csv_with_single_column(self):
16-
# GH18676
16+
# see gh-18676, https://bugs.python.org/issue32255
17+
#
18+
# Python's CSV library adds an extraneous '""'
19+
# before the newline when the NaN-value is in
20+
# the first row. Otherwise, only the newline
21+
# character is added. This behavior is inconsistent
22+
# and was patched in https://bugs.python.org/pull_request4672.
1723
df1 = DataFrame([None, 1])
1824
expected1 = """\
1925
""

0 commit comments

Comments
 (0)