Skip to content

Commit c8dd813

Browse files
committed
Expand comment on why this xfailed test was added
1 parent fba714b commit c8dd813

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pandas/tests/io/formats/test_to_csv.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@
1111
class TestToCSV(object):
1212

1313
@pytest.mark.xfail((3, 6, 5) > sys.version_info >= (3, 5),
14-
reason='Python csv library bug')
14+
reason=("Python csv library bug "
15+
"(see https://bugs.python.org/issue32255)"))
1516
def test_to_csv_with_single_column(self):
16-
# GH18676
17+
# see gh-18676, https://bugs.python.org/issue32255
18+
#
19+
# Python's CSV library adds an extraneous '""'
20+
# before the newline when the NaN-value is in
21+
# the first row. Otherwise, only the newline
22+
# character is added. This behavior is inconsistent
23+
# and was patched in https://bugs.python.org/pull_request4672.
1724
df1 = DataFrame([None, 1])
1825
expected1 = """\
1926
""

0 commit comments

Comments
 (0)