Skip to content

Commit a787c20

Browse files
committed
TST: Add the default separator test for PythonParser
1 parent 330b8c1 commit a787c20

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/tests/io/parser/python_parser_only.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919

2020
class PythonParserTests(object):
2121

22+
def test_default_separator(self):
23+
# GH17333
24+
text = 'aob\n1o2\n3o4'
25+
expected = DataFrame({'a': [1, 3], 'b': [2, 4]})
26+
27+
result = self.read_csv(StringIO(text), sep=None)
28+
29+
tm.assert_frame_equal(result, expected)
30+
2231
def test_invalid_skipfooter(self):
2332
text = "a\n1\n2"
2433

0 commit comments

Comments
 (0)